pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedupdate with RE
2+ messages / 2 participants
[nested] [flat]
* update with RE
@ 2001-12-03 13:37 Vigny Christophe <cvigny@artprice.com>
0 siblings, 1 reply; 2+ messages in thread
From: Vigny Christophe @ 2001-12-03 13:37 UTC (permalink / raw)
To: 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 !
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: update with RE
@ 2001-12-06 20:05 Bruno Wolff III <bruno@[66.92.219.49]>
parent: Vigny Christophe <cvigny@artprice.com>
0 siblings, 0 replies; 2+ messages in thread
From: Bruno Wolff III @ 2001-12-06 20:05 UTC (permalink / raw)
To: Vigny Christophe <cvigny@artprice.com>; +Cc: pgsql-sql
On Mon, Dec 03, 2001 at 02:37:22PM +0100,
Vigny Christophe <cvigny@artprice.com> 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.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-12-06 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-12-03 13:37 update with RE Vigny Christophe <cvigny@artprice.com>
2001-12-06 20:05 ` Bruno Wolff III <bruno@[66.92.219.49]>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox