I want to extract some queries to a CSV output format. Unfortunately, I can\'t use any fancy SQL client or any language to do it. I must use SQLPLUS.
How do I do it?
You could use csv hint. See the following example:
select /*csv*/ table_name, tablespace_name from all_tables where owner = 'SYS' and tablespace_name is not null;