sql server中的聚簇索引有两列 [英] Clustered index in sql server in two columns

查看:102
本文介绍了sql server中的聚簇索引有两列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部



如何创建包含两列的聚簇索引



在student_table上创建聚集索引cdx_students(studentID& BatchID)





是查询正确....那怎么办...



谢谢!

解决方案

  create   clustered   index  cdx_students >  student_table(studentID& BatchID)





我认为应该是





 创建  clustered   index  cdx_students  on  student_table(studentID,BatchID)


Hi, All

How to create clustered index with two columns

create clustered index cdx_students on student_table(studentID&BatchID)



is that query correct.... then How to do...

Thanks!

解决方案

create clustered index cdx_students on student_table(studentID&BatchID)



I think it should be


create clustered index cdx_students on student_table(studentID,BatchID)


这篇关于sql server中的聚簇索引有两列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆