ORDER BY: lexicographic ordering of names

Поиск
Список
Период
Сортировка
От Bryan Herger
Тема ORDER BY: lexicographic ordering of names
Дата
Msg-id D82F64731BE07A4FB46D23F4D9D031BC01BE4DE8@VEX1.verity.com
обсуждение исходный текст
Ответы Re: ORDER BY: lexicographic ordering of names  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: ORDER BY: lexicographic ordering of names  (Edoardo Panfili <edoardo@aspix.it>)
Список pgsql-general

All,

 

I am porting a database from MS SQL Server to Postgres.  One of the tables contains a list of names, which I would like to list alphabetically.  I noticed in the “O” names the following difference:

 

MSSQL:

O’Daniel

O’Neill

Oliveira

Oliver

 

While PGSQL sorts as if the apostrophe was not there:

O’Daniel

Oliveira

Oliver

O’Neill

 

I think the MSSQL output is more correct for listing names alphabetically.  How can I configure or query PGSQL to get the same sort order?

 

Thanks,

Bryan

 

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

Предыдущее
От: ray
Дата:
Сообщение: Installation Error, Server Won't Start
Следующее
От: Raymond O'Donnell
Дата:
Сообщение: Re: Installation Error, Server Won't Start