How to export a table to csv or excel format

I need to export a oracle table to a csv/excel file format (along with the column headings). A solution through cx_oracle or through sqlplus welcome.

Python code from the comment:

con = cx.connect() 
cur = con.cursor() 
printer = cur.execute(sqlcode) 
con.commit() 
9
задан Khwaishien 18 April 2011 в 17:14
поделиться