From: Victor Yegorov <viy@nordlb.lv>
To: rute solipa <rutes@eselx.ipl.pt>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: replace function
Date: Mon, 28 Apr 2003 18:13:30 +0300
Message-ID: <20030428151330.GA27788@nordlb.lv> (raw)
In-Reply-To: <3EAD4293.30902@eselx.ipl.pt>
References: <3EAD4293.30902@eselx.ipl.pt>
* rute solipa <rutes@eselx.ipl.pt> [28.04.2003 18:08]:
> hi everyone,
>
> i've got an oracle query that goes like this:
> select replace (v.ds_conf, 'ns', 'p/fazer') as conf.
> from tb_visitas
>
> the result of this query is everytime is find string 'ns' it will be
> replaced by 'p/fazer'.
>
> does any one can tell me how do i do this in postgresql.
>
> kind regards,
replace(string text, from text, to text)
See `String functions' in the PostgreSQL manual.
--
Victor Yegorov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: viy@nordlb.lv, rutes@eselx.ipl.pt
Subject: Re: replace function
In-Reply-To: <20030428151330.GA27788@nordlb.lv>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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