Re: replace function

Поиск
Список
Период
Сортировка
От Victor Yegorov
Тема Re: replace function
Дата
Msg-id 20030428151330.GA27788@nordlb.lv
обсуждение исходный текст
Ответ на replace function  (rute solipa <rutes@eselx.ipl.pt>)
Список pgsql-sql
* rute solipa <rutes@eselx.ipl.pt> [28.04.2003 18:08]:
> hi everyone,
>
> i've got an oracle query that goes like this:
> select  replace (v.ds_conf, 'ns', 'p/fazer') as conf.
> from tb_visitas
>
> the result of this query is everytime is find string 'ns' it will be
> replaced by 'p/fazer'.
>
> does any one can tell me how do i do this in postgresql.
>
> kind regards,

replace(string text, from text, to text)
See `String functions' in the PostgreSQL manual.

--

Victor Yegorov

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

Предыдущее
От: Radovan Petrikí
Дата:
Сообщение: How I write pretty query.
Следующее
От: Martin Brommer
Дата:
Сообщение: PERFORM / FOUND, what's up?