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
原文地址:https://www.cnblogs.com/igoodful/p/11697899.html
时间: 2024-11-08 21:27:17