我可以使用此查询转换为秒数
SELECT TIMESTAMP 'epoch' + 1362508200000(06/032013 00:00:00)/1000
* INTERVAL '1 second'
但我想转换成毫秒,(06/032013 00:00:00.625362)
答案 0 :(得分:1)
postgres=# select extract(epoch from current_timestamp); date_part ------------------ 1370602871.47581 (1 row) postgres=# select to_timestamp(1370602871.47581); to_timestamp ------------------------------ 2013-06-07 13:01:11.47581+02 (1 row)