从这道题出发,欢迎讨论聚集索引和非聚集索引的区别

cadust cadust 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
为存储学院中学生的材料,创建Student表如下:
CREATE TABLE Student
(
cStudentCode char(3) not null,
cStudentName char(40) not null,
cStudentAddress char(50) not null,
cStudentState char(30) not null,
cStudentCity char(30) not null,
cStudentPhone char(40) not null,
cStudentEmail char(40) null
)
每天对Student表要执行许多基于学生代码的查询。
没有两个学生可以有相同的学生代码。
在每学期结束时要在Student表中输入新学生的材料。

为改进查询的性能。你应创建什么类型的索引?
1.cStudentCode属性上的群集索引。
2.cStudentCode属性上的非群集索引。
3.cStudentCode属性上的唯一性群集索引。
4.cStudentCode属性上的唯一性非群集索引。
========================
从这道题出发,欢迎大家讨论一下聚集索引和非聚集索引的区别以及这两种索引候选键的选择依据!
...全文

相关推荐

评论 7
收藏 已收藏
分享
返回顶部
cadust
应用实例 27,579 成员 68,540 内容