I want to export data from db2 tables to csv format.I also need that first row should be all the column names.
I have little success by using the following comand
Insert the column names as the first row in your table.
Use order by to make sure that the row with the column names comes out first.