From: Bruno Wolff III <bruno@wolff.to>
To: Randy D. McCracken <rdm@srs.fs.usda.gov>
Cc: pgsql-sql@postgresql.org
Subject: Re: Search and Replace
Date: Wed, 8 Jan 2003 08:56:23 -0600
Message-ID: <20030108145623.GA27870@wolff.to> (raw)
In-Reply-To: <Pine.LNX.4.44.0301080901150.28293-100000@www.srs.fs.usda.gov>
References: <Pine.LNX.4.44.0301081159400.13271-100000@matrix.gatewaynet.com>
<Pine.LNX.4.44.0301080901150.28293-100000@www.srs.fs.usda.gov>
On Wed, Jan 08, 2003 at 09:02:47 -0500,
"Randy D. McCracken" <rdm@srs.fs.usda.gov> wrote:
>
> UPDATE publications SET url = 'www.srs.fs.usda.gov' WHERE url =
> 'www.srs.fs.fed.us';
For simple cases you can do this with available string functions.
For more complicated cases, you can write a simple application
that selects records (which means you will need a unique key returned)
based on a regular expression and then the application will issue
updates for the matching records.
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: bruno@wolff.to, rdm@srs.fs.usda.gov
Subject: Re: Search and Replace
In-Reply-To: <20030108145623.GA27870@wolff.to>
* 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