【发布时间】:2019-06-11 18:52:52
【问题描述】:
我正在尝试使用 spool 将大数据从 sql developer 导出到 excel 工作簿中,我的查询是这样的:
spool "D:\\Data\\Party.xlsx"
SELECT PARTY_NO, ACCOUNT_REF FROM HZ_PARTIES
spool off;
但导出完成后,我无法打开 excel 工作表,出现错误
Excel cannot open the file 'Party.xlsx' because the file format for the file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.
【问题讨论】:
-
你确定
spool可以直接导出到Excel文件吗,据我所知,你可以导出为csv等纯文本文件吗?