8.3.3:用存储过程Sp_rename 更改索引名称
例8-5 更改orders 表中的索引orders_quan 名称为orders_quantity。
exec sp_rename orders.[orders_quan], orders_quantity, index
运行结果如下:
------------------------------------------------------------------------------------------------------------------------
Caution: Changing any part of an object name could break scripts and stored procedures.
The index was renamed to orders_quantity.