ITPub博客

首页 > 数据库 > 数据库开发技术 > 型号资料建立索引

型号资料建立索引

原创 数据库开发技术 作者:zaorv 时间:2019-05-27 08:42:05 0 删除 编辑

型号资料建立索引。

/*建立 日期*/

[@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/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 网络管理
请登录后发表评论 登录
全部评论

注册时间:2018-09-12

  • 博文量
    192
  • 访问量
    206113