pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <rmallah@trade-india.com>
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 20:38:37 +0530 (IST)
Message-ID: <Pine.LNX.4.33.0304282036300.645-100000@localhost.localdomain> (raw)
In-Reply-To: <3EAD4293.30902@eselx.ipl.pt>

On Mon, 28 Apr 2003, rute solipa wrote:

> 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'.



It works exactly the same way here :)
in postgresql 7.3.x it is inbuilt , in older
version it can be installed from the postgresql
cookbook website ,


Regds
mallah.


> 
> does any one can tell me how do i do this in postgresql.
> 
> kind regards,
> 
> rute
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 




view thread (10+ messages)  latest in thread

Message-ID: <Pine.LNX.4.33.0304282036300.645-100000@localhost.localdomain>
Permalink:  ../Pine.LNX.4.33.0304282036300.645-100000@localhost.localdomain/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0304282036300.645-100000@localhost.localdomain

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: rmallah@trade-india.com, rutes@eselx.ipl.pt
  Subject: Re: replace function
  In-Reply-To: <Pine.LNX.4.33.0304282036300.645-100000@localhost.localdomain>
  References: <3EAD4293.30902@eselx.ipl.pt> <Pine.LNX.4.33.0304282036300.645-100000@localhost.localdomain>

* 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