2012年11月13日
摘要: 添加列常用SQL语句--删除主键alter table 表名 drop constraint 主键名--添加主键alter table 表名 add constraint 主键名 primary key(字段名1,字段名2……)--添加非聚集索引的主键alter table 表名 add constraint 主键名 primary key NONCLUSTERED(字段名1,字段名2……)新建表:create table [表名]( [自动编号字段] int IDENTITY (1,1) PRIMARY KEY ,[字段1] nVarChar(50) default \'默认值\&# 阅读全文
posted @ 2012-11-13 14:19 山雨-B 阅读(349) 评论(0) 推荐(0)