alter index SCno rename to SCSno
为什么这句修改索引的语句执行总是出错,我用的是sql server2005
alter index常用的语法如下:
(1)重建指定索引:
ALTER INDEX ind ON TA
REBUILD;
(2)重建全部索引:
ALTER INDEX ALL ON TA
REBUILD;
(3)禁用索引:
ALTER INDEX ALL ON TA
DISABLE;
(再次启用使用REBUILD重建而不是ENABLED)
(4)指定参数重建索引:
ALTER INDEX ALL ON TA
REBUILD WITH(FILLFACTOR=80);
(5)指定参数修改索引:
ALTER INDEX ALL ON TA
SET(IGNORE_DUP_KEY = ON);