摘要: 1.主键约束(primary key) create table T_User1 ( Id int primary key identity(1,1), UName nvarchar(10) ) 2.非空约束(not null) create table T_User2 ( Id int primary key identity(1,1), UNam... 阅读全文
posted @ 2015-08-15 21:32 Kimisme 阅读(316) 评论(0) 推荐(0)
摘要: 1.索引的使用 --创建表 create table T_User ( Id int primary key identity(1,1), UNo nvarchar(10), UName nvarchar(10), UAge int ) --创建索引(给字段UName建索引) create index idx_user_name on T_User(UName) ... 阅读全文
posted @ 2015-08-15 11:23 Kimisme 阅读(702) 评论(0) 推荐(0)