Re: how to do a find and replace - Mailing list pgsql-sql

From Bricklen Anderson
Subject Re: how to do a find and replace
Date
Msg-id 437D1C75.4080409@PresiNET.com
Whole thread Raw
In response to Re: how to do a find and replace  (Dawn Buie <dawn@squeegeemedia.com>)
List 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 by date:

Previous
From: Dawn Buie
Date:
Subject: Re: how to do a find and replace
Next
From: Hélder M. Vieira
Date:
Subject: Re: how to do a find and replace