Re: function replace doesnt exist

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
To: Andy Morrow <andy(dot)morrow(at)jinny(dot)ie>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: function replace doesnt exist
Date: 2002-12-12 16:48:16
Message-ID: 3DF8BDD0.3791CCC5@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

If you want character translation like the tr command under unix,
use TRANSLATE.

Andy Morrow wrote:
>
> Hi
>
> im trying to execute an update command on a postgresql DB table using
> pgAdmin II
>
> im using the following statement
>
> UPDATE commandlist SET command = REPLACE (command,'A','B')
>
> commandlist is the table name
> command is the column
> and i want to change the value A to B
>
> but it's giving me the following error message
>
> an error has occured in pgAdmin II:frmSQLInput.cmdExecute_Click:
>
> Number: -2147467259
> Description: Error while executing the query;
> ERROR: Function'replace(varchar, unknown, unknown)' does not exist
> Unable to identify a function that satisfies the given argument types
> You may need to add explicit typecasts
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tim Perdue 2002-12-12 17:01:11 ON DELETE CASCADE
Previous Message Andy Morrow 2002-12-12 16:34:48 function replace doesnt exist