Alter a table column with auto increment by 1 in derby

后端 未结 7 1581
囚心锁ツ
囚心锁ツ 2021-01-11 18:21

I have created a table in derby Netbeans and now i realize that i need to make a column as auto incremented by 1 which is a primary key. How can i do so? I

7条回答
  •  渐次进展
    2021-01-11 18:42

    Try this :

    alter table ISSUERECIPT modify column IRCODE int(4) auto_increment
    

提交回复
热议问题