update with RE

Поиск
Список
Период
Сортировка
От Vigny Christophe
Тема update with RE
Дата
Msg-id 3C0B8012.215C8AC1@artprice.com
обсуждение исходный текст
Ответы Re: update with RE  (Bruno Wolff III <bruno@[66.92.219.49]>)
Список pgsql-sql
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 !



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

Предыдущее
От: "kiyo taka"
Дата:
Сообщение: plpgsql before insert update delete
Следующее
От: "tinar"
Дата:
Сообщение: how to chane the type