Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 94A0C476DE8 for ; Thu, 12 Dec 2002 15:26:07 -0500 (EST) Received: from web20805.mail.yahoo.com (web20805.mail.yahoo.com [216.136.226.194]) by postgresql.org (Postfix) with SMTP id 85898476E32 for ; Thu, 12 Dec 2002 15:24:16 -0500 (EST) Message-ID: <20021212202417.50392.qmail@web20805.mail.yahoo.com> Received: from [208.13.35.65] by web20805.mail.yahoo.com via HTTP; Thu, 12 Dec 2002 12:24:17 PST Date: Thu, 12 Dec 2002 12:24:17 -0800 (PST) From: Jeff Eckermann Subject: Re: function replace doesnt exist To: Andy Morrow , pgsql-sql@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/170 X-Sequence-Number: 10758 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 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 __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com