码迷,mamicode.com
首页 > 数据库 > 详细

Mysql通过语句导出excel

时间:2020-05-28 23:44:07      阅读:93      评论:0      收藏:0      [点我收藏+]

标签:sele   rem   one   div   note   rom   结束   style   not   

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

 

Mysql通过语句导出excel

标签:sele   rem   one   div   note   rom   结束   style   not   

原文地址:https://www.cnblogs.com/judes/p/12984448.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!