Re: [NOVICE] Search and Replace - Mailing list pgsql-sql

From Bruno Wolff III
Subject Re: [NOVICE] Search and Replace
Date
Msg-id 20030110003854.GA22030@wolff.to
Whole thread Raw
In response to Re: Search and Replace  ("Randy D. McCracken" <rdm@srs.fs.usda.gov>)
List pgsql-sql
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.

pgsql-sql by date:

Previous
From: "Randy D. McCracken"
Date:
Subject: Re: Search and Replace
Next
From: Maurício Sessue Otta
Date:
Subject: Getting sequence value after inserting many rows at a time