首页 新闻 会员 周边 捐助

mysql 导出.xlsx 问题

0
[已关闭问题] 关闭于 2017-08-05 10:16

SELECT
nc.id,
DATE_FORMAT(nc.update_time,'%Y-%m-%d'),
nc.create_user_id,
sku.id,
COUNT(p_number_gNJvQs) customer_num
FROM
    `t_report_new_customer` nc
LEFT JOIN t_report_new_customer_offtake offtake ON offtake.execId=nc.id
LEFT JOIN `t_etms_plan_execute` e ON e.report_bo_id=3990 AND e.report_bo_item_id=offtake.id
LEFT JOIN t_bo_sku sku ON sku.id=e.target_bo_item_id
WHERE  DATE_FORMAT(nc.update_time,'%Y-%m-%d') = DATE_SUB(CURDATE(),INTERVAL 1 DAY)
AND offtake.p_number_gNJvQs is not NULL AND sku.id is not NULL
GROUP BY sku.id,nc.create_user_id
 INTO OUTFILE 'D:/SFTP Files/Offtake3/Out/offtake_synchronization_20160825.xlsx' ;

 

导出文件后打不开,

LovingNow的主页 LovingNow | 初学一级 | 园豆:132
提问于:2016-08-26 17:33
< >
分享
所有回答(2)
0

已解决问题

LovingNow | 园豆:132 (初学一级) | 2017-08-05 10:15
0

怎么解决的嘛,分享一下

懂得了才能做一些改变 | 园豆:202 (菜鸟二级) | 2018-04-03 11:17
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册