Spool Command: Do not output SQL statement to file

后端 未结 5 856
闹比i
闹比i 2020-11-28 12:22

I am wanting to output a Query to a CSV file and am using the below as a small test;

spool c:\\test.csv 
select /*csv*/ username, user_id, created from all_u         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-11-28 12:41

    My shell script calls the sql file and executes it. The spool output had the SQL query at the beginning followed by the query result.

    This did not resolve my problem:

    set echo off
    

    This resolved my problem:

    set verify off
    

提交回复
热议问题