Re: replace " with nothing - Mailing list pgsql-sql

From Lew
Subject Re: replace " with nothing
Date
Msg-id iqet0i$fm0$1@news.albasani.net
Whole thread Raw
In response to replace " with nothing  (Tony Capobianco <tcapobianco@prospectiv.com>)
List pgsql-sql
Tony Capobianco wrote:
> We are converting from Oracle to Postgres.  An Oracle script contains
> this line:
>
>   select replace(firstname,'"'), memberid, emailaddress from members;
>
> in an effort to replace the " with nothing.  How can I achieve the same
> result with Postgres?
>
> Here's the Postgres error I get:
>
> select replace(firstname,'"'), memberid, emailaddress from members;
> ERROR:  function replace(character varying, unknown) does not exist
> LINE 1: select replace(firstname,'"'), memberid, emailaddress from m...

<http://www.postgresql.org/docs/9.0/interactive/functions-string.html>
<http://www.postgresql.org/docs/9.0/interactive/functions-string.html#FUNCTIONS-STRING-OTHER>

replace(string text, from text, to text)

-- 
Lew
Honi soit qui mal y pense.
http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg


pgsql-sql by date:

Previous
From: Richard Huxton
Date:
Subject: Re: CROSS JOIN ordering
Next
From: "Nguyen,Diep T"
Date:
Subject: ordering by date for each ID