QUESTION POSED ON: 18 April 2007
We are trying to export data from a DB2 table to a flat file by the following command:
db2 -tvf file.sql -z file.out
But it displays the output as below (i.e., it produces output including the sql, column name and the message ?EURoe2 record(s) selected?EUR?):
select tabname from syscat.tables where tabschema = 'VSC'
TABNAME
VEHICLE_TEMP
VSC_DASHBOARD_INTER
2 record(s) selected.
But we need only the records in the output file as appears below:
VEHICLE_TEMP
VSC_DASHBOARD_INTER
Please help us with this query.
|