首页 > 数据库技术 > 详细

mysql导出某张表的部分数据

时间:2019-10-18 14:09:41      阅读:231      评论:0      收藏:0      [点我收藏+]

 

 

1、使用into outfile ‘保存到操作系统的外部文件路径‘

mysql -uroot -p123456 -hhostname -P3306

select   column_name_list  from table_name where condition  into outfile ‘/home/glc/tmp/yes.csv‘;

 

2、使用 mysql -e "select  column_name_list  from table_name where condition "  > no.csv

mysql导出某张表的部分数据

原文:https://www.cnblogs.com/igoodful/p/11697899.html

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