Oracle到Excel - PL / SQL导出过程 [英] Oracle to Excel - PL/SQL export procedure
问题描述
这就是为什么我决定使用HTML标签生成XLS文件 - 它小于XML,我必须直接定义格式只有一些特殊的列(字符串,数字和日期由Excel自动格式化)。
这是非常简单和方便的,但我不能定义多个工作表。
你知道如何在excel文件中添加/定义多个工作表用HTML编写?我试图使用像<%ActiveWorkbook.Worksheet.Add%>这样的VBScript公式,但它不起作用。
最好的问候,
Przemek
而不是在Oracle服务器上创建Excel或HTML文件,您可以获取Oracle数据通过ODBC或OLEDB到现有的Excel文档。缺点是,您应该注意用户权限。
https://www.youtube.com/watch?v=Adz0zZFePf8
I’m writing pl/sql procedure that exports data from Oracle to Excel. I need data formatting so I can’t use CSV. I’ve already tried with XML but it generates too large files when I want to export e.g. 70000 rows with 50 columns (almost 300 MB!!!).
That’s why I decided to use HTML tags to generate XLS file – it is smaller than XML and I must directly define format of only some special columns (strings, numbers and dates are formatted automatically by Excel). It’s very simple and convenient but I can’t define more than one worksheet.
Do you know how to add/define more than one worksheet in excel file written using HTML? I’ve tried to use VBScript formula like <% ActiveWorkbook.Worksheet.Add %>, but it doesn’t work.
Best regards,
Przemek
Instead of creating Excel or HTML files on Oracle server, you can fetch Oracle data to existing Excel document via ODBC or OLEDB. The shortcoming is, that you should be careful with user permissions.
https://www.youtube.com/watch?v=Adz0zZFePf8
这篇关于Oracle到Excel - PL / SQL导出过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!