查看某表已存在的索引:
exec sp_helpindex [TableName]
创建索引语句:
1 CREATE[ UNIQUE ] [ CLUSTERED | NONCLUSTERED ] INDEX 你起的索引名 2 ON {表名|视图名} (列名[ ASC | DESC ] [ ,...n ] ) 3 4 ex: 5 CREATE INDEX testIndex 6 ON [Tracking_Unit] (Serial_Nb DESC)
删除索引:
drop index<index_name> ex: drop index dbo.[Tracking_Unit].testIndex
讲的最详细的博主:(4条消息) SQLServer 索引操作_ClementQL的博客-CSDN博客_sqlserver索引的使用
https://blog.csdn.net/CQL_K21/article/details/94966296
标签:语句,INDEX,testIndex,drop,SQLServer,索引 From: https://www.cnblogs.com/zhangbupangpang/p/16981473.html