PostgreSQL 9.1.11
csv文件:
mobile,type,province,city,local_code
1330010,电信CDMA卡,北京,北京市,010
错误提示:
SQL:错误
错误: 关系 "win168_area_codes" 的 "mobile" 字段不存在
LINE 1: INSERT INTO "public"."win168_area_codes" ("mobile","type","...
^
In statement:
INSERT INTO "public"."win168_area_codes" ("mobile","type","province","city","local_code")
VALUES ('1330010','电信CDMA卡','北京','北京市','010')
表数据结构:
mobile integer NOT NULL
type character varying(50)
province character varying(10)
city character varying(20)
local_code character varying(10)
那个出错的尖号是对着字段名"mobile"的第一个双引号的,搞不懂为什么会自动在字段名上加双引号,出错的sql命令去掉字段上的双引号直接执行是没问题的。
很多数据啊,求解决。