X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 808FE47631F for ; Mon, 28 Apr 2003 11:11:32 -0400 (EDT) Received: from smtp-out.net.ipl.pt (31.220.137.193.in-addr.arpa [193.137.220.31]) by postgresql.org (Postfix) with ESMTP id DD7A4475EDF for ; Mon, 28 Apr 2003 11:11:30 -0400 (EDT) Received: (qmail 2220 invoked by uid 508); 28 Apr 2003 16:11:35 +0100 Received: from rutes@eselx.ipl.pt by smtp-int.net.ipl.pt by uid 505 with qmail-scanner (sophie: 2.14/3.68. spamassassin: 2.50. Clear:. Processed in 0.071297 secs); 28 Apr 2003 15:11:35 -0000 X-IPLNet-RcptTo: Multiple Received: from matrix.eselx.ipl.pt (193.137.237.148) by 0 with SMTP; 28 Apr 2003 16:11:34 +0100 Received: from [172.21.3.60] (helo=eselx.ipl.pt) by matrix.eselx.ipl.pt with esmtp (Exim 3.35 #1 (Debian)) id 19AAHe-00010l-00; Mon, 28 Apr 2003 16:11:10 +0100 Message-ID: <3EAD44CA.2090303@eselx.ipl.pt> Date: Mon, 28 Apr 2003 16:12:10 +0100 From: rute solipa User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Rajesh Kumar Mallah , "pgsql-sql@postgresql.org" Subject: Re: replace function References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------000705080900020402010104" X-Spam-Status: No, hits=-34.0 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,HTML_20_30,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MOZILLA_UA autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/417 X-Sequence-Number: 13118 This is a multi-part message in MIME format. --------------000705080900020402010104 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Rajesh Kumar Mallah wrote: >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 >> >> >> > > > > but i have the 7.2.2 version --------------000705080900020402010104 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Rajesh Kumar Mallah wrote:
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

    


  
but i have the 7.2.2 version
--------------000705080900020402010104--