copy ERROR: invalid input syntax for type timestamp: "xxxREATED"

使用toad保存时选择了Encoding UTF-8,文件上传到linux 服务器下使用postgresql copy命令导入时会出现 ERROR:  invalid input syntax for type错误 ,  原因是文件有with选项,需要使用no BOM,通过file 命令可以知道文件的文本格式                                                                                                                        
[postgres@ulasmdb1 ~]$ file 1.sql 
1.sql: UTF-8 Unicode (with BOM) text
[postgres@ulasmdb1 ~]$ file oracle_post.txt 
oracle_post.txt: ASCII text

copy Foracle from '/home/postgres/oracle_post.txt' DELIMITERS ',' CSV; 

copy ERROR: invalid input syntax for type timestamp:   

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/582521/viewspace-1868054/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/582521/viewspace-1868054/

你可能感兴趣的:(copy ERROR: invalid input syntax for type timestamp: "xxxREATED")