X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id A0172476353 for ; Mon, 28 Apr 2003 11:08:46 -0400 (EDT) Received: from trade-india.com (ns5.trade-india.com [66.234.10.13]) by postgresql.org (Postfix) with SMTP id B9903476321 for ; Mon, 28 Apr 2003 11:08:45 -0400 (EDT) Received: (qmail 1352 invoked by uid 505); 28 Apr 2003 15:08:50 -0000 Received: from rmallah@trade-india.com by ns5.trade-india.com by uid 502 with qmail-scanner-1.15 (uvscan: v4.1.60/v4171. Clear:. Processed in 1.723363 secs); 28 Apr 2003 15:08:50 -0000 Received: from unknown (HELO ?219.65.230.205?) (219.65.230.205) by ns5.trade-india.com with SMTP; 28 Apr 2003 15:08:48 -0000 Date: Mon, 28 Apr 2003 20:38:37 +0530 (IST) From: Rajesh Kumar Mallah X-X-Sender: To: rute solipa Cc: "pgsql-sql@postgresql.org" Subject: Re: replace function In-Reply-To: <3EAD4293.30902@eselx.ipl.pt> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Status: No, hits=-31.8 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, QUOTE_TWICE_1,RCVD_IN_OSIRUSOFT_COM,REPLY_WITH_QUOTES, USER_AGENT_PINE 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/445 X-Sequence-Number: 13146 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 >