DB2 400 drop column

后端 未结 6 1873
北荒
北荒 2021-02-07 09:02

I want to drop a column called id which is an auto incrementing PK.

The SQL:

alter table \"CO88GT\".\"XGLCTL\" drop column id cascade;
         


        
6条回答
  •  死守一世寂寞
    2021-02-07 09:41

    Finally I found a solution:

    CALL QSYS2.QCMDEXC('ADDRPYLE SEQNBR(1500) MSGID(CPA32B2) RPY(''I'')');
    CALL QSYS2.QCMDEXC('CHGJOB INQMSGRPY(*SYSRPYL)');
    
    
    ALTER TABLE  DROP COLUMN ;                
    

提交回复
热议问题