you can copy a table whit the export/import statement, example:
EXPORT TO "E:\PROGRA~1\IBM\SQLLIB\WEBCPTAB.IXF" OF IXF MESSAGES "E:\PROGRA~1\IBM\SQLLIB\WEBCPTAB.EXM" SELECT * FROM DB2DWAD1.A0_2MESESATRAS;
IMPORT FROM "E:\PROGRA~1\IBM\SQLLIB\WEBCPTAB.IXF" OF IXF MESSAGES "E:\PROGRA~1\IBM\SQLLIB\WEBCPTAB.IMM" CREATE INTO DB2INST1.NEWTABLE IN TBATTRIB INDEX IN TBINDEX LONG IN TBLOB;
Quote:
|
Originally Posted by cartjohn
Can anyone help me w/ the query below. I am trying to create a table from another table.
SQL:
create table cca8380.testing as select * from card.mktg_cmpgn;
|