pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Randy D. McCracken <rdm@srs.fs.usda.gov>
Cc: Ross J. Reedstrom <reedstrm@rice.edu>
Cc: Rajesh Kumar Mallah. <mallah@trade-india.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: [SQL] Search and Replace
Date: Thu, 9 Jan 2003 18:38:54 -0600
Message-ID: <20030110003854.GA22030@wolff.to> (raw)
In-Reply-To: <Pine.LNX.4.44.0301091911270.6431-100000@www.srs.fs.fed.us>
References: <20030109230322.GC30740@wallace.ece.rice.edu>
	<Pine.LNX.4.44.0301091911270.6431-100000@www.srs.fs.fed.us>

On Thu, Jan 09, 2003 at 19:15:51 -0500,
  "Randy D. McCracken" <rdm@srs.fs.usda.gov> wrote:
> 
> Hi Rajesh,
> 
> I don't know why but the example you gave me did not work.  Here is what
> happened when I tried:
> 
> ==========
> 
> pubs_test=# UPDATE publications SET url = replace( 'www.srs.fs.fed.us' ,
> 'www.srs.fs.usda.gov' , url )  WHERE url ilike '%www.srs.fs.fed.us%';
> 
> ERROR:  Function 'replace(unknown, unknown, text)' does not exist
>         Unable to identify a function that satisfies the given argument types
>         You may need to add explicit typecasts

The arguments to replace were in the wrong order.



view thread (11+ messages)  latest in thread

Message-ID: <20030110003854.GA22030@wolff.to>
Permalink:  ../20030110003854.GA22030@wolff.to/
Also on:    postgresql.org/message-id/20030110003854.GA22030@wolff.to

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: bruno@wolff.to, rdm@srs.fs.usda.gov, reedstrm@rice.edu, mallah@trade-india.com, pgsql-novice@postgresql.org
  Subject: Re: [SQL] Search and Replace
  In-Reply-To: <20030110003854.GA22030@wolff.to>

* 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