大数据时代SQL Server项目实战课件:实现索引.pptx

大数据时代SQL Server项目实战课件:实现索引.pptx

;;一、任务描述;二、任务分析;三、任务实施;第二步:创建非聚集索引。

usepubs

go

createnonclusteredindexNCLINDX_ordnumONsales(ord_num)

go;第三步:创建唯一索引。

setnocounton

usepubs

ifexists(select*frominformation_schema.tables

wheretable_name=emp_pay)

DROPTABLEemp_pay

GO;usepubs

ifexists(selectnamefromsysindexes

文档评论(0)

1亿VIP精品文档

相关文档