Re: how to do a find and replace

Поиск
Список
Период
Сортировка
От Bricklen Anderson
Тема Re: how to do a find and replace
Дата
Msg-id 437D1C75.4080409@PresiNET.com
обсуждение исходный текст
Ответ на Re: how to do a find and replace  (Dawn Buie <dawn@squeegeemedia.com>)
Список pgsql-sql
Dawn Buie wrote:
> I used:
> 
> update media_instance set location=replace(location,'v.','')
> where location like '%/0/v.%'
> 
> and that did work-
> 
> thank you very much.
> 
> it seems to me that the replace function is the same as translate()- no?
> 
Right, I forgot your WHERE clause.

Some more details on those functions can be found here:
http://www.postgresql.org/docs/8.1/interactive/functions-string.html#FUNCTIONS-STRING-OTHER

-- 
_______________________________

This e-mail may be privileged and/or confidential, and the sender does
not waive any related rights and obligations. Any distribution, use or
copying of this e-mail or the information it contains by other than an
intended recipient is unauthorized. If you received this e-mail in
error, please advise me (by return e-mail or otherwise) immediately.
_______________________________


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

Предыдущее
От: Dawn Buie
Дата:
Сообщение: Re: how to do a find and replace
Следующее
От: Hélder M. Vieira
Дата:
Сообщение: Re: how to do a find and replace