首页 > 代码库 > Hsqldb中设置主键,并让主键自增

Hsqldb中设置主键,并让主键自增

CREATE TABLE userinfo (
Id INTEGER GENERATED BY DEFAULT AS IDENTITY,
Name varchar(100) NOT NULL,
Department varchar(100) NOT NULL,
Status varchar(100) DEFAULT NULL,
Email varchar(200) NOT NULL,
PRIMARY KEY (Id)
)