My Oracle Support Banner

How to Create Flat File With One Column Heading But No Underline (Doc ID 2259173.1)

Last updated on APRIL 25, 2017

Applies to:

SQL*Plus - Version 11.2.0.1 and later
Information in this document applies to any platform.

Goal

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.
 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.