Anyone have a good set of sqlplus configuration directives to help transform a given sql query into nicely tab separated output for pulling into a spreadsheet or further processing?
+1
A:
Check out the Oracle documentation:
You can generate a tab in Oracle by using the tab's ASCII value 9 and the chr function:
select chr(9) from dual;
EddieAwad
2008-09-19 23:31:42
+2
A:
One particular script that I have stolen on more than one occasion comes from an AskTom thread on extracting data to a flat file. If I needed a quick and dirty flat file out of SQL*Plus. I would tend to prefer the DUMP_CSV function Tom posted earlier on that thread for any sort of ongoing process, though.
Justin Cave
2008-09-19 23:49:19