Subject | Re: [firebird-support] Compound indexes and plans |
---|---|
Author | Dmitry Yemanov |
Post date | 2006-05-26T09:23:28Z |
<leugim@...> wrote:
like a concatenated string. If you want to use its Nth segment, all previous
N-1 segments should be matched for equality. Otherwise it's impossible to
set up the starting point of the range scan.
Dmitry
>Because COL_2 is used for inequality comparison. A compound key is something
> the query was:
> SELECT 1
> FROM TABLE_A
> WHERE COL_1 = ? AND COL_2 > 0 AND COL_3 = ?
>
> why not on col_3?
like a concatenated string. If you want to use its Nth segment, all previous
N-1 segments should be matched for equality. Otherwise it's impossible to
set up the starting point of the range scan.
Dmitry