型号资料建立索引。
/*建立 日期*/
[@more@]
--型号资料
if exists (select 1 from sysIndexes where id=object_id('style') and name ='Ix_style' )
begin
drop index style.ix_style
end
go
create index ix_Style on Style(style_no,material,clr_ID)
go
if exists ( select 1 from sysIndexes where id=object_id('odr_detail_shoe') and name= 'IX_odr_detail_shoe')
begin
drop index odr_detail_shoe.ix_odr_detail_shoe
end
go
create index ix_odr_detail_shoe on odr_detail_shoe(SplShoeNo DESC ,odr_no DESC,Clr_id,Material)
GO
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/729024/viewspace-1027379/ ,如需转载,请注明出处,否则将追究法律责任。