Subject | Re: [firebird-support] how to put null at the end in oder by ASC |
---|---|
Author | Mark Rotteveel |
Post date | 2011-09-03T08:06:42Z |
On 2-9-2011 19:21, Vander Clock Stephane wrote:
something which is sortable, or accept that NULLs will be first, or
leave out the records with NULL and query them separately.
Mark
--
Mark Rotteveel
> unfortunatlyThen you will need to make changes so there is no NULL value but
>
> If you override the default NULLs placement, no index will be used for
> sorting. In Firebird 1.5,
> that is the case with NULLS FIRST. In 2.0 and higher, with NULLS LAST on
> ascending and
> NULLS FIRST on descending sorts.
>
> but i need the index :(
something which is sortable, or accept that NULLs will be first, or
leave out the records with NULL and query them separately.
Mark
--
Mark Rotteveel