Re: Using the REPLACE command to replace all vowels

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: Using the REPLACE command to replace all vowels
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCEA0F958@algol.sollentuna.se
обсуждение исходный текст
Ответ на Using the REPLACE command to replace all vowels  ("EbGrooveCb" <cbaumann@cmsgrp.com>)
Ответы Re: Using the REPLACE command to replace all vowels  (Wayne Conrad <wconrad@yagni.com>)
Re: Using the REPLACE command to replace all vowels  (Geoffrey <esoteric@3times25.net>)
Список pgsql-general
> Is there a way to make seperate replacements in 1 field in
> one command in SQL?
>
> I need to remove all vowels (a,e,i,o,u) in a field. How would
> I go about that?

Try something like
SELECT regexp_replace(your_string,'[aeiou]','','g') ...

(btw, if you want all vowels, don't forget 'y' :-P)

//Magnus

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

Предыдущее
От: Erik Myllymaki
Дата:
Сообщение: logfiles filling up
Следующее
От: Wayne Conrad
Дата:
Сообщение: Re: Using the REPLACE command to replace all vowels