PostgreSQL의 SQLite DateTime 함수와 동등한 것은 무엇입니까?
-
02-07-2019 - |
문제
질문은 꽤 설명 적입니다. 나는 postgresql을 찾고 있습니다 sqlite dateTime 함수.
해결책 3
OK, thanks for the answers, they helped point me in the right direction. What I actually was looking for was to_timestamp.
다른 팁
postgres=# select to_char(now(),'YYYY-mm-dd HH:MM:ss');
to_char
---------------------
2008-09-24 02:09:20
(1 row)
postgres=# select to_char(now(),'YYYY-mm-dd HH24:MM:ss');
to_char
---------------------
2008-09-24 14:09:20
(1 row)
I think this is what your're searching for:
timestamp [ (p) ] [ without time zone ] or timestamp [ (p) ] with time zone
otherwise have a look @ http://www.postgresql.org/docs/8.1/interactive/datatype-datetime.html
제휴하지 않습니다 StackOverflow