2008-09-24 164 views

回答

2

好的,謝謝你的回答,他們幫助我指出了正確的方向。我實際上正在尋找的是to_timestamp

6
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) 
相關問題