Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Copying rows in PL/SQL

Copying rows in PL/SQL

From: Bill Prew <billprew_at_cox.net>
Date: 22 Jul 2002 09:44:40 -0700
Message-ID: <477625b6.0207220844.58109a40@posting.google.com>


I have what I thought would be a fairly easy thing to do in something like PL/SQL, but I haven't hit on a solution yet.

I want to be able to select a group of records from a table, and insert a slightly modified version of the records (key changes) back into the same table. I'd like to not have to list all the columns in the table, as there are many. I have been looking at records and %ROWTYPE as a way to define a record that matches a given tables schema, but once I get the old row into that record structure, how can I change a few columns in it, and then insert it back into the same table? Received on Mon Jul 22 2002 - 11:44:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US