【发布时间】:2014-04-06 13:14:39
【问题描述】:
我已尝试参考 SO 中提出的问题
在我写的 sql 中:
COPY lcities FROM E'C:\\Users\\ADMIN\\Desktop\\sneh.csv' DELIMITER ';' CSV
ERROR: invalid input syntax for integer: "Lawyer Code, Lawyer Name, Years of Experience, Location, Average Rating"
CONTEXT: COPY lcities, line 1, column id: "Lawyer Code, Lawyer Name, Years of Experience, Location, Average Rating"
********** Error **********
ERROR: invalid input syntax for integer: "Lawyer Code, Lawyer Name, Years of Experience, Location, Average Rating"
SQL state: 22P02
Context: COPY lcities, line 1, column id: "Lawyer Code, Lawyer Name, Years of Experience, Location, Average Rating"
【问题讨论】:
-
“关系“sneh”不存在”有什么不清楚的地方?
-
当然,这很不言自明。没有名为
sneh的表。 (您是否对大小写折叠感到困惑?是否有一个名为"SNEH"的表格 - 请注意双引号?)
标签: sql postgresql csv