Hi,
these is one EXCELENT!!! solution in
http://dbforums.com/showthread.php?p...=1#post4548226
Try this out:
Code:
CREATE TABLE SCHEM1.TB_TEST1 (COL1 SMALLINT NOT NULL, COL2 DEC(7,4));
DESCRIBE TABLE SCHEM1.TB_TEST1;
CALL SYSPROC.ALTOBJ ('APPLY_CONTINUE_ON_ERROR', 'CREATE TABLE SCHEM1.TB_TEST1 (COL1 SMALLINT NOT NULL, COL2 DEC(19,8) NOT NULL)', -1, ? );
DESCRIBE TABLE SCHEM1.TB_TEST1;
Note: character ";" is command delimiter.
So just repeat the whole table definition from create table and pass this as argument to system store procedure - in my case in bold text. What is the biggest beauty: the data does NOT need to be exported!!!
My system: DB2 v8.1 fixpack 9 (which is identical to db2 v8.2.2) on Windows.
Hope this helps,
Grofaty