string filtering in postgres?

Поиск
Список
Период
Сортировка
От Kenneth Tilton
Тема string filtering in postgres?
Дата
Msg-id 49E79718.2070103@gmail.com
обсуждение исходный текст
Ответы Re: string filtering in postgres?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I need to normalize a column for search purposes by stripping all
non-alphanumeric characters:

   UPDATE my-table SET id_stripped = ??? id;

I have been playing with regexp_replace( id, ????,'');

   UPDATE my-table
        SET id_stripped = regexp_replace( id, <various>,'');id;

Without much luck. Can this even be done with regex, or should I just
write a custom sql function?

kt

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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Looking for advice on database encryption
Следующее
От: Steve Atkins
Дата:
Сообщение: Re: Looking for advice on database encryption