pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jean-Luc Lachance <jllachan@nsd.ca>
To: Andy Morrow <andy.morrow@jinny.ie>
Cc: pgsql-sql@postgresql.org
Subject: Re: function replace doesnt exist
Date: Thu, 12 Dec 2002 11:48:16 -0500
Message-ID: <3DF8BDD0.3791CCC5@nsd.ca> (raw)
References: <CPEDJLGAFMLAIAPMHNBMGEBECJAA.andy.morrow@jinny.ie>

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



view thread (4+ messages)  latest in thread

Message-ID: <3DF8BDD0.3791CCC5@nsd.ca>
Permalink:  ../3DF8BDD0.3791CCC5@nsd.ca/
Also on:    postgresql.org/message-id/3DF8BDD0.3791CCC5@nsd.ca

 · 

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: jllachan@nsd.ca, andy.morrow@jinny.ie
  Subject: Re: function replace doesnt exist
  In-Reply-To: <3DF8BDD0.3791CCC5@nsd.ca>

* 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