自动加1;
create table mytest
(
id int primary key identity(1,1),--主键,自动+1
name varchar(20) unique not null,--不允许重复,不允许为空
Age tinyint,
notetime smalldatetime default getdate()
)
insert into mytest values ('张三',20,getdate())
insert into mytest (name,age)values ('李四',20) |