Re: replace " with nothing

Поиск
Список
Период
Сортировка
От Lew
Тема Re: replace " with nothing
Дата
Msg-id iqet0i$fm0$1@news.albasani.net
обсуждение исходный текст
Ответ на replace " with nothing  (Tony Capobianco <tcapobianco@prospectiv.com>)
Список 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: CROSS JOIN ordering
Следующее
От: "Nguyen,Diep T"
Дата:
Сообщение: ordering by date for each ID