1、帶標題
select * into outfile 'E:/20200528222319_weibaojilv.xls' from(select '序號','維修時間','結束時間','維修花費時間','維修碼','所屬分系統','所屬分系統','故障名','維修人員','維修費用','備注' union select id,time,end_time,use_time_str,fix_code,subsystem,device_name,fault_name,who_take,spend_money,remark from fix_history)b
2、不帶標題
select * into outfile 'E:/catid.xls' from 784_note