整数的Postgres无效输入语法:“”

时间:2018-07-06 15:44:24

标签: postgresql

我试图使用COPY命令将文件插入PostGres:

COPY "Temp_Table"("ID1","ID2","TR_0","TR_1","TR_2","TR_3","TR_4","TR_5","TR_6","cont","fram","hasm","act_ch","cat_ch",mv,log,h,ar,nar) FROM '/home/user/cons_fram.csv' WITH DELIMITER ',';

我收到以下错误:

ERROR:  invalid input syntax for integer: ""
CONTEXT:  COPY Temp_Table, line 588, column ar: ""

如果我转到该文件的第588行,则会看到以下内容:

10520,10521,text_0,text_1,text_2,text_3,text_4,text_5,text_6,cont,fram,n,0.53,MH,1.01,0,0,

在未计算值的情况下,我故意未添加“”。我做错了什么?有什么方法可以指示对于某些值应该上传NULL吗?

0 个答案:

没有答案