load data infile 问题

wudaoshengu 2008-11-26 01:41:51
select * into outfile 'u.txt' fields terminated by ',' enclosed by '[]' from t3;


load data infile 'u.txt' fields terminated by ',' enclosed by '[]' into t3; //语法错误。

哪里出错,望指教!
...全文
60 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
wudaoshengu 2008-11-26
  • 打赏
  • 举报
回复
load data infile 'u.txt' into table t3 fields terminated by ',' enclosed by '+' lines terminated by '\r\n';
这样才正确。
wudaoshengu 2008-11-26
  • 打赏
  • 举报
回复
load data infile 'v.txt' into table t3 fields terminated by ',' ;

wudaoshengu 2008-11-26
  • 打赏
  • 举报
回复
select * into outfile 'u.txt' fields terminated by ',' enclosed by '+' from t3;
load data infile 'u.txt' fields terminated by ',' enclosed by '+' into table t3;

还是语法错误 error:1064


select * into outfile 'v.txt' fields terminated by ',' from t3;
load data infile 'v.txt' fields terminated by ',' into table t3;
也是语法错误。
到底是哪里错了?
fcoolx 2008-11-26
  • 打赏
  • 举报
回复
enclosed by '[]'
只支持单字节,你这是两个字节了

56,679

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧