博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

导出mysql表的部分记录

Posted on 2015-09-11 09:25  DBA日志小记  阅读(135)  评论(0编辑  收藏  举报
导出:
select * from db.tab1 where id=xxx  into outfile '/tmp/row.txt' fields terminated by '|' enclosed by ''; 
导入:
load data local infile '/root/row.txt'' into table tab1 fields terminated by '|' enclosed by '';

版权声明:QQ:597507041