Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何转换'dd-MM-yyyy HH:mm:ss.fff'为'yyyy-MM-dd HH:MI:SS.MS'格式以便可以将时间戳值存储在 PostgreSQL 8.0.2timestamp列中?
'dd-MM-yyyy HH:mm:ss.fff'
'yyyy-MM-dd HH:MI:SS.MS'
timestamp
想必您不必转换格式,只需在发布COPY.
COPY
命令是:
SET datestyle to 'DMY';