Re: update with RE

Поиск
Список
Период
Сортировка
Искать
От
Bruno Wolff III
Тема
Re: update with RE
Дата
Msg-id
20011206140532.A22419@wolff.to
Ответ на
update with RE (Vigny Christophe)
Список
Дерево обсуждения
update with RE Vigny Christophe <cvigny@artprice.com>
Re: update with RE Bruno Wolff III <bruno@[66.92.219.49]>
On Mon, Dec 03, 2001 at 02:37:22PM +0100, Vigny Christophe  wrote:
> hello,
> 
> Is it possible to use a Regular expression to update a field like in
> perl (s/T/t/)
> ie :
> update table set name=($1) where name ~* '.*(phe).*'
> substitute using a grouping function $1 is in fact 'phe'.
> 
> It should be really interesting and powerfull !

You would have to write a function to do this. There is a note about this
in the 7.2 documentation.

В списке pgsql-sql по дате отправления
От: Oleg Lebedev
Дата:
Сообщение: view rules
От: Ross J. Reedstrom
Дата:
Сообщение: Re: view rules
FAQ