From: Bricklen Anderson <BAnderson@PresiNET.com>
To: Dawn Buie <dawn@squeegeemedia.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: how to do a find and replace
Date: Thu, 17 Nov 2005 16:12:37 -0800
Message-ID: <437D1C75.4080409@PresiNET.com> (raw)
In-Reply-To: <be1d8fb1d0b1bb5cf79b8e73b66b5609@squeegeemedia.com>
References: <1132269492.30942.20.camel@dev11dt.corp.localmatters.com>
<5d001d303f001ea0847254c3f0a352d9@squeegeemedia.com>
<437D1862.2060402@PresiNET.com>
<be1d8fb1d0b1bb5cf79b8e73b66b5609@squeegeemedia.com>
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.
_______________________________
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: BAnderson@PresiNET.com, dawn@squeegeemedia.com
Subject: Re: how to do a find and replace
In-Reply-To: <437D1C75.4080409@PresiNET.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox