1
我想一些的.csv数据导入到Postgres的,并有一个数据类型的问题:将.csv导入到postgres。如何处理时间?
我的属性之一是生日:
1968-06-24 00:00:00
所以我使用时间戳,由pgmodeler建议。不过,我总是得到消息:
postgres=# \connect new_database
You are now connected to database "new_database" as user "postgres".
new_database=# \copy players FROM '/Users/Desktop/Rdaten/Data/players.csv' DELIMITER ';' CSV HEADER
错误:
ERROR: invalid input syntax for type timestamp: "NULL"
CONTEXT: COPY players, line 267, column birthday: "NULL"
new_database=#
我能做些什么呢?
你可以给一个完整的csv行样本?而你的目标表数据结构? – Houari 2014-10-19 22:06:45