Subject | Re: [firebird-support] Re: Ordering with nulls first and index usage |
---|---|
Author | Mark Rotteveel |
Post date | 2012-12-01T09:02:44Z |
On 1-12-2012 09:53, Dmitry Yemanov wrote:
http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/nullguide-sorts.html
--
Mark Rotteveel
> 01.12.2012 1:26, Leyne, Sean wrote:For Firebird 2.x yes, but for Firebird 1.x no:
>>
>> In order for an index to be used for ORDER BY, the sort order much match
>> exactly the storage order of the index.
>
> Correct.
>
>> All indexes have NULLs stored at the end (ie. not first).
>
> ASC indices have NULLs stored in the beginning, DESC indices have NULLs
> stored at the end.
http://www.firebirdsql.org/file/documentation/reference_manuals/user_manuals/html/nullguide-sorts.html
--
Mark Rotteveel