ORDER BY a string

Поиск
Список
Период
Сортировка
От phazon
Тема ORDER BY a string
Дата
Msg-id 94ffdc2e0711060809y7ec6a700jed0f63649eb0a24c@mail.gmail.com
обсуждение исходный текст
Ответы Re: ORDER BY a string
Список pgsql-general
Hi,

I've to order by q query by a column.

SELECT a.id, a.nom
FROM table a
ORDER BY a.nom;

And i've something strange. It's order like that:

5   | aaaa
8   | aaab
15 | ** aaac
6   | aaad

I've "**" before the name in order to display them at first, but the 2
chars "**" are ignored in the order by.


Can anyone explain me why ?


PS: Sorry for my bad english, i'm french.

--
phazon

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to find non-unique indexes in system tables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ORDER BY a string