Last updated on APRIL 25, 2017
Applies to:SQL*Plus - Version 188.8.131.52 and later
Information in this document applies to any platform.
A user wants to spool data into a .csv file from SQL*Plus, but the output is not as desired.
The spooled output must meet the following criteria:
1. The query selects all columns, but not have them concatenated with pipe signs. That is, need to have query "select * from mytable", and not "select col1 ||','||col2||','||col3 from mytable".
2. Have each column data separated by a delimiter (for example, a comma).
3. Include one row of column headings at the top of spooled flat file.
4. Remove dashed underline shown under the column heading.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms