ITPub博客

首页 > 数据库 > 数据库开发技术 > MSSQL 新建表

MSSQL 新建表

原创 数据库开发技术 作者:zaorv 时间:2019-03-20 13:51:05 0 删除 编辑
if exists ( select 1 from sysobjects where name='bas_edu' and type ='U' )
begin
drop table bas_edu ;
end;
go
create table bas_edu( --学历表
eduNo varchar(10) not null , --编号
eduName varchar(20) not null, --名称
eduMemo varchar(30) not null default '' ,--备注
creater varchar(10) not null, --建立人
createDate date , -- 新增日期
constraint bas_edu_pk primary key(eduNo) --eduNo 为主键
)
go[@more@]

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/729024/viewspace-1021276/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2018-09-12

  • 博文量
    192
  • 访问量
    206114