update with RE - Mailing list pgsql-sql

From Vigny Christophe
Subject update with RE
Date
Msg-id 3C0B8012.215C8AC1@artprice.com
Whole thread Raw
Responses Re: update with RE
List 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 by date:

Previous
From: "kiyo taka"
Date:
Subject: plpgsql before insert update delete
Next
From: "tinar"
Date:
Subject: how to chane the type