2008-09-24 167 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) 
相关问题