Re: replace " with nothing

Поиск
Список
Период
Сортировка
От Tony Capobianco
Тема Re: replace " with nothing
Дата
Msg-id 1305147065.1954.5.camel@tony1.localdomain
обсуждение исходный текст
Ответ на replace " with nothing  (Tony Capobianco <tcapobianco@prospectiv.com>)
Ответы Re: replace " with nothing  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список pgsql-sql
Ok, I think I found it:

select translate(firstname,'"','') from members;

gives me what I want.

Thanks.

On Wed, 2011-05-11 at 16:29 -0400, 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...
> 
> Thanks.
> 
> 




В списке pgsql-sql по дате отправления:

Предыдущее
От: Tony Capobianco
Дата:
Сообщение: replace " with nothing
Следующее
От: Leif Biberg Kristensen
Дата:
Сообщение: Re: replace " with nothing