标签:on type rom c select ie Go 索引 it
IF EXISTS (SELECT * FROM SYSINDEXES WHERE NAME=‘IX_skInvoice_iInvoiceType‘)--检测是否已经存在IX_TEST_TNAME索引
DROP INDEX skInvoice.IX_skInvoice_iInvoiceType--如果存在则删除
--创建索引
CREATE NONCLUSTERED INDEX IX_skInvoice_iInvoiceType --创建一个非聚集索引
ON skInvoice(iInvoiceType, istatus, ID_Supplier) --为TEST表的TNAME字段创建索引
WITH FILLFACTOR = 30 --填充因子为30%
GO
标签:on type rom c select ie Go 索引 it
原文地址:http://www.cnblogs.com/zhangzhifeng/p/4064630.html