Hi,
I have a table and one of the columns, say x, is of type LONG. I can do a select a, b, c, x from my_table and have no problems in getting the data I require.
I now want to output this to a csv file so I set spool to a file, say output.csv and run the following:
spool ../../output.csv
select a||','||b||','||c||','||x
from my_table;
spool off;
When I run this I get an oracle error:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
Can anyone help me in extracting this data to csv format.
Thanks.
I have a table and one of the columns, say x, is of type LONG. I can do a select a, b, c, x from my_table and have no problems in getting the data I require.
I now want to output this to a csv file so I set spool to a file, say output.csv and run the following:
spool ../../output.csv
select a||','||b||','||c||','||x
from my_table;
spool off;
When I run this I get an oracle error:
ORA-00932: inconsistent datatypes: expected NUMBER got LONG
Can anyone help me in extracting this data to csv format.
Thanks.