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()
perhaps use csv module (from standard library):
If you have loads of data, unroll the fetchall() into a loop.
Happy trails!