db2数据库中建表主键自动加1
1个回答
展开全部
CREATE TABLE MY.TABLE
(AUTO_PK_ID BIGINT NOT NULL GENERATED ALWAYS
AS IDENTITY (START WITH 1, INCREMENT BY 1, CACHE 20, NO CYCLE, NO ORDER)
)
DATA CAPTURE NONE;
(AUTO_PK_ID BIGINT NOT NULL GENERATED ALWAYS
AS IDENTITY (START WITH 1, INCREMENT BY 1, CACHE 20, NO CYCLE, NO ORDER)
)
DATA CAPTURE NONE;
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询