Re: how to do a find and replace

From: Bricklen Anderson <BAnderson(at)PresiNET(dot)com>
To: Dawn Buie <dawn(at)squeegeemedia(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to do a find and replace
Date: 2005-11-18 00:12:37
Message-ID: 437D1C75.4080409@PresiNET.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.
_______________________________

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Hélder M. Vieira 2005-11-18 01:10:17 Re: how to do a find and replace
Previous Message Dawn Buie 2005-11-18 00:08:07 Re: how to do a find and replace