首页 > 数据库技术 > 详细

mysql大数据导出导入

时间:2016-03-15 20:51:36      阅读:302      评论:0      收藏:0      [点我收藏+]

1)导出

select * from users into outfile ‘/tmp/users.txt‘;
或 select * from users where sex=1 into outfile ‘/tmp/users.txt‘;

 

 

2)导入

load data from infile ‘/tmp/users.txt‘ into table users;

 

 

注意:此方法只能导出导入表数据,表结构需要另外处理。

mysql大数据导出导入

原文:http://www.cnblogs.com/tujia/p/5280957.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!