select .... outfile ‘file_path‘ fields terminate by ‘\t‘ lines terminate by ‘\r\n‘ from table_name;
---------------------------------------------------------------------------------------------------------------------------------------------------
例子:
select * into outfile ‘E:/3.txt‘ fields terminated by ‘\t‘ lines terminated by ‘\r\n‘ from employee;