首页 > 数据库技术 > 详细

索引SQL

时间:2015-03-19 23:39:02      阅读:368      评论:0      收藏:0      [点我收藏+]

--索引:就是为了查询提高效率的。相当于一个引用,可以快速找到数据的位置
--聚集索引:索引的顺序就对应着内容的顺序,所以聚集索引意味着排序
--非聚集索引:索引的顺序和内容的顺序没有本质的关联
--语法:
--create clustered|nonclustered index IX_名称
--on 表(列)
if exists (select * from sysindexes where name=‘ix_studentname‘)
drop index student.ix_studentname
create nonclustered index ix_studentname
on student(studentname)

索引SQL

原文:http://www.cnblogs.com/dianshen520/p/4352035.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!