码迷,mamicode.com
首页 > 数据库 > 详细

MySQL导入txt文件

时间:2014-07-07 08:21:37      阅读:226      评论:0      收藏:0      [点我收藏+]

标签:文件   os   line   sql   div   mysql   

"Flufy","Harold","cat","f","1993-2-4"
"claws","Gwen","cat","m","1994-3-17"
"Brower","Diane","dog","m","1994-3-17","1999-3-17"
"Whistler","Gwen","bird",,"1994-3-17"
"Slim","Benny","snake","m","1996-3-17"
mysql>load data local infile ‘/path/andy.txt‘ into table pet
mysql>fields terminated by ‘,‘ enclosed by ‘"‘
mysql>lines terminated by ‘\r\n‘;

MySQL导入txt文件,布布扣,bubuko.com

MySQL导入txt文件

标签:文件   os   line   sql   div   mysql   

原文地址:http://www.cnblogs.com/lvdongjie/p/3822283.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!