【发布时间】:2011-02-25 05:26:10
【问题描述】:
我们正在使用优化顾问为数据库建立索引。假设我们有两个查询从一个表中获取两组不同的数据。
当我们分析这两个查询时,我们得到了两种类型的建议,例如
1. Index three columns c1,c2 and c3 in the table, here c1 is primary key.
2. Index three columns c2,c3 and c4 in the table.
在这种情况下,我们必须如何进行。我们是否必须创建两个索引?请提出您的建议。
【问题讨论】: