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

MySql的导入与导出

时间:2015-06-30 21:38:03      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

1.导入

load data infile /tmp/yhb/skin_info.txt into table t_skin fields terminated by \t (skin_id,img) ; //指定列导入

load data infile /tmp/yhb/skin_info.txt into table t_skin fields terminated by \t; //不指定列导入

2.导出

select * from yhb into outfile xxx.xls; //在MySql客户端直接执行导出语句
//可用脚本导出,比如脚本名称为1.sql

mysql -uuser -ppassword < 1.sql >xxx.xls 

 

MySql的导入与导出

标签:

原文地址:http://www.cnblogs.com/longzhongren/p/4611440.html

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