Re: replace function - Mailing list pgsql-sql

From Victor Yegorov
Subject Re: replace function
Date
Msg-id 20030428151330.GA27788@nordlb.lv
Whole thread Raw
In response to replace function  (rute solipa <rutes@eselx.ipl.pt>)
List pgsql-sql
* 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

pgsql-sql by date:

Previous
From: Radovan Petrikí
Date:
Subject: How I write pretty query.
Next
From: Martin Brommer
Date:
Subject: PERFORM / FOUND, what's up?