• <small id='EHDOm'></small><noframes id='EHDOm'>

      1. <tfoot id='EHDOm'></tfoot>
      2. <legend id='EHDOm'><style id='EHDOm'><dir id='EHDOm'><q id='EHDOm'></q></dir></style></legend>

        • <bdo id='EHDOm'></bdo><ul id='EHDOm'></ul>
      3. <i id='EHDOm'><tr id='EHDOm'><dt id='EHDOm'><q id='EHDOm'><span id='EHDOm'><b id='EHDOm'><form id='EHDOm'><ins id='EHDOm'></ins><ul id='EHDOm'></ul><sub id='EHDOm'></sub></form><legend id='EHDOm'></legend><bdo id='EHDOm'><pre id='EHDOm'><center id='EHDOm'></center></pre></bdo></b><th id='EHDOm'></th></span></q></dt></tr></i><div id='EHDOm'><tfoot id='EHDOm'></tfoot><dl id='EHDOm'><fieldset id='EHDOm'></fieldset></dl></div>

        如何在 Toad for Data Analyst 中将结果导出到 Excel 的不同选项卡?

        时间:2024-04-15

          <tbody id='ub3Z4'></tbody>
          <bdo id='ub3Z4'></bdo><ul id='ub3Z4'></ul>
        • <i id='ub3Z4'><tr id='ub3Z4'><dt id='ub3Z4'><q id='ub3Z4'><span id='ub3Z4'><b id='ub3Z4'><form id='ub3Z4'><ins id='ub3Z4'></ins><ul id='ub3Z4'></ul><sub id='ub3Z4'></sub></form><legend id='ub3Z4'></legend><bdo id='ub3Z4'><pre id='ub3Z4'><center id='ub3Z4'></center></pre></bdo></b><th id='ub3Z4'></th></span></q></dt></tr></i><div id='ub3Z4'><tfoot id='ub3Z4'></tfoot><dl id='ub3Z4'><fieldset id='ub3Z4'></fieldset></dl></div>

          <small id='ub3Z4'></small><noframes id='ub3Z4'>

            1. <tfoot id='ub3Z4'></tfoot><legend id='ub3Z4'><style id='ub3Z4'><dir id='ub3Z4'><q id='ub3Z4'></q></dir></style></legend>

                • 本文介绍了如何在 Toad for Data Analyst 中将结果导出到 Excel 的不同选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有谁知道如何使用数据分析师在 TOAD 中的报表自动化将多个查询的结果导出到同一个 Excel 工作簿的不同工作表中?谢谢

                  Does anyone know how to export results from more than one query into different sheets of the same Excel workbook using the report automation in TOAD for data analyst? Thank you

                  推荐答案

                  我不确定您是否可以使用 Toad 自动执行此操作,但是您可以使用 Excel 执行一个小技巧.

                  I'm not sure that you can do that with Toad automatically but there is a little trick that you can do with Excel.

                  编写第一个查询并在Toad中执行,然后右键单击查询结果数据网格并选择导出数据集...",在Excel格式下选择Excel实例"并单击确定".它将打开 Excel 并添加一张包含查询数据的工作表.

                  Write first query and execute it in Toad, after that right click on query result data grid and choose "Export dataset...", under Excel format choose "Excel instance" and click OK. It will open Excel and add one sheet with data from your query.

                  对第二个查询重复相同的过程,它会将另一个工作表添加到同一文档并填充第二个查询的数据.

                  Repeat same process for second query and it will add another sheet to same document and fill with data from second query.

                  执行完所有查询并将其添加到 Excel 后,保存 excel 文档.

                  After you executed all queries and added it to Excel save excel document.

                  如果您想完全自动执行此操作,您可以使用另一种解决方案来创建包含多个工作表的单个 Excel 文档,这些工作表加载了来自不同查询的数据.购买第三方 PL/SQL 包 ORA_EXCEL.

                  If you want to do that completely automatically, there is another solution which you can use to create single Excel document with multiple sheets which are loaded with data from different queries. Purchase the third party PL/SQL package, ORA_EXCEL.

                  这是如何做到这一点的示例:

                  Here is example how to do that:

                  BEGIN  
                      ORA_EXCEL.new_document;  
                  
                      ORA_EXCEL.add_sheet('Employees');  
                      ORA_EXCEL.query_to_sheet('select * from employees');  
                  
                      ORA_EXCEL.add_sheet('Departments');  
                      ORA_EXCEL.query_to_sheet('select * from departments', FALSE);  
                  
                      ORA_EXCEL.add_sheet('Locations');  
                      ORA_EXCEL.query_to_sheet('select * from locations');  
                  
                      -- EXPORT_DIR is an Oracle directory with at least  
                      -- write permission  
                      ORA_EXCEL.save_to_file('EXPORT_DIR', 'example.xlsx');  
                  END;
                  

                  它可以生成 Excel 文件并将其存储到 Oracle 目录中,或者您可以将生成的 Excel 文件放入 PL/SQL BLOB 变量中,以便您可以将其存储到表中或创建自己的过程来分发文件,例如将其发送到电子邮件.

                  It can generate Excel file and store it to Oracle directory, or you can get generated Excel file into PL/SQL BLOB variable so you can store it to table or create your own process to distribute file like sending it to email.

                  您可以在产品文档/示例页面上找到更多详细信息:http://www.oraexcel.com/examples

                  More details you can find on products documentation/examples page: http://www.oraexcel.com/examples

                  干杯

                  这篇关于如何在 Toad for Data Analyst 中将结果导出到 Excel 的不同选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何从 Python 中的数据库创建 CSV 文件? 下一篇:在 mysql 中自动运行查询

                  相关文章

                  <tfoot id='PvuaZ'></tfoot>
                    <bdo id='PvuaZ'></bdo><ul id='PvuaZ'></ul>
                    <i id='PvuaZ'><tr id='PvuaZ'><dt id='PvuaZ'><q id='PvuaZ'><span id='PvuaZ'><b id='PvuaZ'><form id='PvuaZ'><ins id='PvuaZ'></ins><ul id='PvuaZ'></ul><sub id='PvuaZ'></sub></form><legend id='PvuaZ'></legend><bdo id='PvuaZ'><pre id='PvuaZ'><center id='PvuaZ'></center></pre></bdo></b><th id='PvuaZ'></th></span></q></dt></tr></i><div id='PvuaZ'><tfoot id='PvuaZ'></tfoot><dl id='PvuaZ'><fieldset id='PvuaZ'></fieldset></dl></div>

                      <legend id='PvuaZ'><style id='PvuaZ'><dir id='PvuaZ'><q id='PvuaZ'></q></dir></style></legend>

                      <small id='PvuaZ'></small><noframes id='PvuaZ'>