Hello,
I want to create a .csv file from a table.
My script :
I obtain this result :
The "ST" corresponds to "STATUS" and "DATEDEBU" to "DATEDEBUT". It seems that SQL*Plus truncates the column name to the lenght of the datatype.
How can I change this and force SQL*Plus to show complete names (without formatting each column with COLUMN command ...) ?
Thanx,
Philippe
I want to create a .csv file from a table.
My script :
Code:
SET echo OFF
SET HEADINGS ON
SET colsep ','
SET feedback OFF
SET linesize 1000
SET sqlprompt ''
SET serveroutput ON SIZE 40000 FORMAT
SET TERMOUT OFF
SET UNDERLINE OFF
SET trimspool OFF
SET trimout OFF
spool C:\temp\EXECUTION.csv
SELECT *
FROM EXECUTION
WHERE ROWNUM < 10;
spool OFF
QUIT
I obtain this result :
Code:
EXECUTION ,CODE ,ST,DATEDEBU,DATEFIN
#xxxxxxx ,12349,ok,01.01.03,01.01.03
...
The "ST" corresponds to "STATUS" and "DATEDEBU" to "DATEDEBUT". It seems that SQL*Plus truncates the column name to the lenght of the datatype.
How can I change this and force SQL*Plus to show complete names (without formatting each column with COLUMN command ...) ?
Thanx,
Philippe