1.创建聚集索引
create clustered index 索引名称 on 表名称(字段名称)
2.创建唯一非聚集索引
create unique nonclustered index 索引名称 on 表名称(字段名称)
3.创建非聚集索引
create nonclustered index 索引名称 on 表名称(字段名称)
4.创建非聚集复合索引
create nonclustered index 索引名称 on 表名称(字段名称A,字段名称B)
1.创建聚集索引
create clustered index 索引名称 on 表名称(字段名称)
2.创建唯一非聚集索引
create unique nonclustered index 索引名称 on 表名称(字段名称)
3.创建非聚集索引
create nonclustered index 索引名称 on 表名称(字段名称)
4.创建非聚集复合索引
create nonclustered index 索引名称 on 表名称(字段名称A,字段名称B)