pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres SQL List <pgsql-sql@postgresql.org>
Subject: search and replace
Date: Wed, 09 Jun 2004 13:30:40 -0400
Message-ID: <40C74940.7060401@virginia.edu> (raw)

I have a field in one of my tables that has a path to a file listed. I 
need to move those files and now have to update all those paths. Is 
there a simply search and replace type option in sql? or do I need to do 
an update using the entire new path name?
If so, I think the easier solution will be to dump the table, use a 
macro to update it and then restore.
Jodi
-- 

/_______________________________
//Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu <mailto:jkanter@virginia.edu>/

 

/ /

/ /

view thread (11+ messages)  latest in thread

Message-ID: <40C74940.7060401@virginia.edu>
Permalink:  ../40C74940.7060401@virginia.edu/
Also on:    postgresql.org/message-id/40C74940.7060401@virginia.edu

 · 

reply

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: jkanter@virginia.edu
  Subject: Re: search and replace
  In-Reply-To: <40C74940.7060401@virginia.edu>

* 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