English 中文(简体)
在实地进行过滤是否会受益于包含这一方面在内的综合关键?
原标题:Will a filtering on a field benefit from a composite key that contains that field, among others?

如果我拥有一个基于领域(如年份(int)和Ord(int)的综合关键(初级或平原指数),将过滤<代码>WHERE Year=2011<>/code>从该关键标准中受益,或完全忽视该关键标准?

最佳回答

如果你在最左栏(N >= 1)上过滤,那么该指数至少可以使用(由于其他事实,仍然被忽视)。

因此,如果您的指数载于(年、年、月/日),而您通过<代码>年过滤,则该指数可以使用。

但是,如果你在<代码>上过滤, 单单单是“,该过滤器甚至不会被考虑――不能使用。

问题回答

暂无回答




相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

SQL server: Can NT accounts be mapped to SQL server accounts

In our database we have an SQL server account that has the correct roles to access some of the databases. We are now switching to windows authentication and I was wondering if we can create a NT user ...

SQL Server 2000, ADO 2.8, VB6

How to determine if a Transaction is active i.e. before issuing Begin Transaction I want to ensure that no previous transaction are open.. the platform is VB6, MS-SQL Server 2000 and ADO 2.8

热门标签