pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Walt Bigelow <walt@stimpy.com>
To: pgsql-sql@postgresql.org
Subject: copying rows
Date: Tue, 25 Aug 1998 15:38:45 -0700 (PDT)
Message-ID: <Pine.LNX.4.02.9808251530500.9040-100000@alice.stimpy.com> (raw)

I have a table that stores spot info for our tape label system.  I want to
be able to copy all records with a specific librarynumber back into the
same table, but with a different librarynumber.

Something similar to this (which of course does not work)

select into tblspotinfo (librarynumber) values ('6666') select spotnumber,
spottitle, isci, trt, date, timecode from tblspotinfo where librarynumber
= '9988';

Of course it does not like me overloading the select into command like
that.  Is there a simple way to do this that I am just missing?  I just
want to duplicate the data related to librarynumber 9988 and make the new
librarynumber 6666.

Thanks for any insight,
Walt






view thread (2+ messages)  latest in thread

Message-ID: <Pine.LNX.4.02.9808251530500.9040-100000@alice.stimpy.com>
Permalink:  ../Pine.LNX.4.02.9808251530500.9040-100000@alice.stimpy.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.02.9808251530500.9040-100000@alice.stimpy.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: walt@stimpy.com
  Subject: Re: copying rows
  In-Reply-To: <Pine.LNX.4.02.9808251530500.9040-100000@alice.stimpy.com>
  References: <Pine.LNX.4.02.9808251530500.9040-100000@alice.stimpy.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