I was trying to export data from table in DB2 using command..I m abo to export into csv file..But column headers are not there..Need to have column headers as well.So what I can add in the sql query to get column headers as well
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- Bulk update SQL Server C#
This is possible in the latest (2019) Db2 11.5 release and Db2 Warehouse (local and on Cloud) with
EXTERNAL TABLE
feature viaINCLUDEHEADER
/COLUMN_NAMES
switch, see an example