postgreSql9.1运行某SQL文件时遇到以下错误:ERROR:syntax error at or near

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
liwei_swjtu
帖子: 12
注册时间: 2008-11-07 21:03

postgreSql9.1运行某SQL文件时遇到以下错误:ERROR:syntax error at or near

#1

帖子 liwei_swjtu » 2013-05-04 23:11

大家好,我在ubuntu12.04上运行一个SQL文件时遇到以下错误:
ERROR: syntax error at or near "1"
LINE 3603: 1 Discourse 00B355 10 \N \N \N \N 1 2013-01-07 22:01:32.0864...

第3603行的内容是标红部分:
COPY categories (id, name, color, topic_id, top1_topic_id, top2_topic_id, top1_user_id, top2_user_id, topic_count, created_at, updated_at, user_id, topics_year, topics_month, topics_week, slug) FROM stdin;
1 Discourse 00B355 10 \N \N \N \N 1 2013-01-07 22:01:32.086478 2013-01-07 22:01:32.086478 2 \N \N \N discourse

有谁知道吗?先谢谢啦!
头像
lhw828
帖子: 2797
注册时间: 2007-03-15 16:58
来自: 湖北武汉
联系:

Re: postgreSql9.1运行某SQL文件时遇到以下错误:ERROR:syntax error at or ne

#2

帖子 lhw828 » 2013-10-18 10:38

搜索那个错误代码
坚持第3603行
回复