DB2 400 drop column

后端 未结 6 1866
北荒
北荒 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:56

    The only way I found to get jdbc to work is to first manually change the default for this message. Then run your update application. In our case we use Liquibase. I could get the java's CommandCall to call ADDRPYLE and CHGJOB INQMSGRPY(*SYSRPYL), but it never actually allowed the alter table * drop column * to not give the follow error:

    Error:

    10 -- A cancel reply to an inquiry message was received.
    

    Working Command:

    CHGMSGD MSGID(CPA32B2) MSGF(QSYS/QCPFMSG) DFT('I')
    

    Reference:

    • http://knowledgebase.progress.com/articles/Article/9678

提交回复
热议问题