Navigation
Recent Posts
Archive
If you want to produce a csv file from a SQL select query in SQL*Plus use the following syntax.
This will produce a csv formatted file. Straight to excel, change csv to xls but bear in mind two potential issues (a) row limit in Excel, and (b) leading zeros in number fields will be lost in excel.
The leading zeros can be resolved if you instead spool the file as a txt as you will be forced to use excels conversion wizard to open the file.
Posted in: Business
Tags: Oracle | SQL | SQL*Plus | csv
Posted by: Anonymous
© Eriginal Ltd 2011, all rights reserved