且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将MYSQL查询导出到文件

更新时间:2022-05-19 10:39:18

 

sql文件:

set names utf8;
select * from xxxxx

 

mysql命令:

mysql -h xxxx -uxxxx -p < 4.sql > 4.txt