Re: Re: select substr???

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Re: select substr???
Дата
Msg-id Pine.LNX.4.30.0104092037300.1255-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: select substr???  ("Tim Johnson" <tim@celestialdesign.co.uk>)
Список pgsql-sql
Tim Johnson writes:

> Hi,
>
> I have postgres 6.x (where x is something).
>
> I have the following list of data
>
> data
> --------
> ABC*
> ABC
> ABC-
> ABC+
> ABC
> QWE~
> ASD+
> ASD#
> KLASDHK-
> KLASDHK+
> KLASDHK
> KLASDHK*
>
>
> what I want to do is 'select distinct(data) [ignoring non alphanumeric
> characters] order by data'

Write a function that strips off the suffixes and do 'select distinct
voodoo(data) ...'.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



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

Предыдущее
От: Richard
Дата:
Сообщение: pg_dump and BLOB
Следующее
От: Wei Weng
Дата:
Сообщение: Sorting and then...