当前位置:Gxlcms > 数据库问题 > mysql导出某张表的部分数据

mysql导出某张表的部分数据

时间:2021-07-01 10:21:17 帮助过:13人阅读

 

 

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导出某张表的部分数据

标签:p12   nbsp   使用   sele   tab   out   sql   sel   文件   

人气教程排行