Re: function replace doesnt exist - Mailing list pgsql-sql

From Jean-Luc Lachance
Subject Re: function replace doesnt exist
Date
Msg-id 3DF8BDD0.3791CCC5@nsd.ca
Whole thread Raw
In response to function replace doesnt exist  ("Andy Morrow" <andy.morrow@jinny.ie>)
List 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@postgresql.org so that your
> message can get through to the mailing list cleanly


pgsql-sql by date:

Previous
From: "Andy Morrow"
Date:
Subject: function replace doesnt exist
Next
From: Tim Perdue
Date:
Subject: ON DELETE CASCADE