如何使用SQL developer将数据假脱机到excel工作簿中

如何使用SQL developer将数据假脱机到excel工作簿中,sql,excel,spool,Sql,Excel,Spool,我正在尝试使用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

我正在尝试使用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.

文件类型应该是
.xls
而不是
xlsx

您确定
spool
可以直接导出到Excel文件,据我所知,您可以导出为纯文本文件,如csv等。?