首页 > 数据库技术 > 详细

sql一些命令

时间:2016-04-04 17:52:04      阅读:366      评论:0      收藏:0      [点我收藏+]

1、创建表

create table tSId
(
   tSid int identity(1,1) primary key,
   tSName varchar(10) check(len(tSName)>2),
   tSGender char(2) default(‘男‘),
   tSAddress varchar(50) null,
   tSPhone char(11) null,
   tSAge int chect(tSAge>18 and tSAge<60),
   tSBirthay date not null,
   tSCardld varchar(18) not null,
   tClassId int foreign key references TblClass(TClassId)              
)

 2、插入

insert into Users(UserName,UserPwd) values(‘ccc‘,123456)

  

sql一些命令

原文:http://www.cnblogs.com/TaoYuanJieYi/p/5352248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!