문제

질문은 꽤 설명 적입니다. 나는 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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top