Subject | Re: [firebird-support] Compound indexes and plans |
---|---|
Author | leugim@poczta.onet.pl |
Post date | 2006-05-26T07:31:32Z |
Hello,
SELECT 1
FROM TABLE_A
WHERE COL_1 = ? AND COL_2 > 0 AND COL_3 = ?
why not on col_3?
Regards.,
...michal
>> Given an index:the query was:
>>
>> CREATE ASC INDEX IDX_A ON TABLE_A (COL_1, COL_2, COL_3);
>>
>> Which portions of the index will the following query use?
>
> COL_1 and COL_2.
SELECT 1
FROM TABLE_A
WHERE COL_1 = ? AND COL_2 > 0 AND COL_3 = ?
why not on col_3?
Regards.,
...michal