Re: function replace doesnt exist

From: Jeff Eckermann <jeff_eckermann(at)yahoo(dot)com>
To: Andy Morrow <andy(dot)morrow(at)jinny(dot)ie>, pgsql-sql(at)postgresql(dot)org
Subject: Re: function replace doesnt exist
Date: 2002-12-12 20:24:17
Message-ID: 20021212202417.50392.qmail@web20805.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

What version are you using? I think "replace" is new
for version 7.3.
As another poster has pointed out, "translate" works
for individual characters. Or you could code up your
own replace using the native functionality of pl/perl
or pl/tcl or such. Or you could just upgrade to 7.3.

--- Andy Morrow <andy(dot)morrow(at)jinny(dot)ie> 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

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Aravind Vinnakota 2002-12-12 21:41:02 client for solaris
Previous Message Bret Hughes 2002-12-12 18:22:04 Re: primary + foreign key