From: Dawn Buie <dawn@squeegeemedia.com>
To: pgsql-sql@postgresql.org
Subject: how to do a find and replace
Date: Thu, 17 Nov 2005 15:47:41 -0800
Message-ID: <5d001d303f001ea0847254c3f0a352d9@squeegeemedia.com> (raw)
In-Reply-To: <1132269492.30942.20.camel@dev11dt.corp.localmatters.com>
References: <1132269492.30942.20.camel@dev11dt.corp.localmatters.com>
Hello-
I'm using postgres 7.4
I have a column of data with the wrong prefix for many items.
The wrong entries are entered ' /0/v.myimage.jpg'
While the correct ones are ' /0/myimage.jpg'
I need to remove all the 'v.' characters from this column.
I'm able to do a
SELECT * FROM myTable
WHERE location = '%/0/v.%'
I'm just confused about how I should write code to update the selected
items to remove the 'v.'
Would I use substring? An example would be much appreciated.
thank you
Dawn
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: dawn@squeegeemedia.com
Subject: Re: how to do a find and replace
In-Reply-To: <5d001d303f001ea0847254c3f0a352d9@squeegeemedia.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