PL/SQL Developer methods for exporting data to Excel

Source: Internet
Author: User

http://yedward.net/?id=92

problem description : using pl/SQL Developer to export data to Excel table is very necessary, the general may be directly in Select CSV format when exporting, because the format can be opened directly in Excel . However, at the time of export , there is a problem, when exported to CSV format, the data garbled, and exported to XML or HTML when there is no problem.

Figure 1:PL/SQL Developer Export to CSV garbled

Problem Resolution : The above problem may be a set problem with the character set. I have found some other data export methods, which are listed below:

Figure 2:PL/SQL Developer Export data

(1) export as HTML before importing Excel

Figure 3: Open HTML file with IE and select export to Excel

First, export the data as HTML, then open the HTML file with IE and copy the URL of the HTML file in the browser. In the HTML page, right-click to select Export to Microsoft Excel(X).

Figure 4: Entering a new Web query

After selecting " Export to Excel" in the previous step, it will automatically open an Excel and go to the interface of Figure 4, if the address bar in Figure 4 is not automatically filled in the address, then copy the next address, then click "Import", The following operation is a good default confirmation.

Figure 5: Data import feature column table inExcel

It is worth pointing out that there is actually no need to use IE to open, and in IE, this operation, in fact, as long as the browser open, and then copy the HTML file address, and then in Excel "data" imported "from the site" to enter the address is good, The above action is just for the convenience of friends who do not know the operation.

(2) export to XML first, then import Excel

Figure 6: Selecting a data source

export The data to an XML file in pl/SQL Developer, then follow the instructions in Figure 5, select "From XML data import" and then go to the "Select data source" interface in Figure 6, Then select the XML file, followed by default OK.

Figure 7: Example of importing Excel results

When I'm using it, I prefer to export it to an XML file, because it allows you to select the data source directly, without having to know the URL address as HTML, and when you use XML to import Excel , It automatically adds some styling and field filtering to the results of the import, as shown in 7.

PL/SQL Developer methods for exporting data to Excel

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.