db2建表

区别 差别于主键
CREATE
TABLE HBI3.LOGIN_MODE_SWITCH_APPLY ( ID BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1,INCREMENT BY 1), APPLY_NO VARCHAR(30), LOGIN_MODE INT, AUDIT_STATUS INT, APPLY_USER VARCHAR(20), APPROVAL_USER VARCHAR(20), APPLY_TIME TIMESTAMP, APPROVAL_TIME TIMESTAMP, SWITCH_REASON VARCHAR(200) ); COMMENT ON TABLE HBI3.LOGIN_MODE_SWITCH_APPLY '登录模式切换申请'; CREATE TABLE check_device_filter ( id int NOT NULL GENERATED BY DEFAULT AS IDENTITY (START WITH 1,INCREMENT BY 1), strategyid varchar(255) , deviceip varchar(255) , port varchar(255) , operator varchar(50) NOT NULL, updatetimeDate bigint NOT NULL )

 

posted @ 2018-03-08 14:17  NHZ-M  阅读(338)  评论(0编辑  收藏  举报