Re: Is this "order by" logic right

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Is this "order by" logic right
Дата
Msg-id 20030924075105.B53596@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Is this "order by" logic right  (Josué Maldonado <josue@lamundial.hn>)
Ответы Re: Is this "order by" logic right  (Josué Maldonado <josue@lamundial.hn>)
Список pgsql-general
On Wed, 24 Sep 2003, [ISO-8859-1] Josué Maldonado wrote:

> Hello list,
>
> The query has the following in the where:
>
> UPPER(cty_Name) LIKE 'NEW%' ORDER BY cty_name
>
> it returns the data in this way:
>
> Newark
> Newark
> New Britain
> Newburgh
> New Cannan
> New Castle
> Newcomerstown
>
> The table has index on cty_name (btree), I'll appreciate any comments or
> suggestions about it.

You haven't given your locale or system type, but this seems reasonably
if you're in a locale that generally ignores spaces (for example my redhat
machine does so in en_US).  If you want byte order sorting, you'll
probably need to re-initdb with LC_COLLATE set to "C"


В списке pgsql-general по дате отправления:

Предыдущее
От: maufaini@tiscali.it (Maurizio Faini)
Дата:
Сообщение: Re: GET LAST ID INSERT
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Accessing tables from different databases