please need help: alpha numeric sorting

Поиск
Список
Период
Сортировка
От Raouf
Тема please need help: alpha numeric sorting
Дата
Msg-id 000f01c23a01$6f17bc40$0201a8c0@pavilion
обсуждение исходный текст
Ответы Re: please need help: alpha numeric sorting  (Ken Corey <ken@kencorey.com>)
Список pgsql-novice
Hi Gurus,
 
I need your help for this one:
 
let's say I have 1 field of type VARCHAR that contains numbers (as ascii) and characters like this:
 
 
title
-----------
12.1 cisco ccnp routing
12.2 cisco ccnp remote access
12.11cisco ccnp switching
12.3 cisco ccnp support 
 
 
I'd like to sort that column in alphanumeric order, like this:
 
title
-----------
12.1 cisco ccnp routing
12.2 cisco ccnp remote access
12.3 cisco ccnp support 
12.11cisco ccnp switching
 
 
but if I sort using group by title and order by title asc I have:
 
 
title
-----------
12.1 cisco ccnp routing
12.11cisco ccnp switching
12.2 cisco ccnp remote access
12.3 cisco ccnp support 
12.11cisco ccnp switching
 
where "12.11cisco ccnp switching" is before "12.2 cisco ccnp remote access" because it is smaller.
 
Is it possible  ?
 
thanks for your help

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

Предыдущее
От: Ludwig Lim
Дата:
Сообщение: Re: pg_restore not working
Следующее
От: "Markus Wollny"
Дата:
Сообщение: Re: please need help: alpha numeric sorting