I have the below query that saves the results to a csv file. How can I modify the query so the columns are separated by pipe '|' rather than comma? Also, when I open the csv file, the actual sql query is in the csv file as well, how I can exclude the query from the file?
Currently using SQL Developer.
Many Thanks.
spool c:\temp\myoutputfile.csv
select * from mytable;
spool off;