创建表语句

来源:互联网 发布:淘宝双立人官网 编辑:程序博客网 时间:2024/04/28 12:00
create table UserInfo(
ID int identity (1,1) primary key not null ,//设置标识列,主键
Name varchar(20) not null,
Age int not null,
Sex int not null,
CreateTime datetime default getDate() not null  //设置默认值为当前时间
)
0 0
原创粉丝点击