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 -> Re: a row-level operator for copying?

Re: a row-level operator for copying?

From: Mark Harrison <mh_at_pixar.com>
Date: Fri, 27 Jul 2007 19:06:22 GMT
Message-ID: <Omrqi.53369$5j1.41981@newssvr21.news.prodigy.net>


sybrandb <sybrandb_at_gmail.com> wrote:
> On Jul 25, 3:45 pm, "Chris L." <diver..._at_uol.com.ar> wrote:
> > > insert into atest_history
> > > select * from atest
> > > where c = 1;
> >
> > > delete from atest
> > > where c = 1;
>
> One could BULK COLLECT the IDs of the affected columns in a
> collection, and BULK INSERT them into the history table and BULK
> DELETE them from the original table.
> Or one would list partition the table, and just truncate the
> partition.

Both of these look great. Thanks Chris and Sybrand!

Mark

-- 
Mark Harrison
Pixar Animation Studios
Received on Fri Jul 27 2007 - 14:06:22 CDT

Original text of this message

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