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 -> Moving LONG RAWs between tables

Moving LONG RAWs between tables

From: <darenscott_at_my-deja.com>
Date: Thu, 22 Jul 1999 15:23:10 GMT
Message-ID: <7n7d0g$u1j$1@nnrp1.deja.com>


Can anyone help me with a small problem.

I am attempting to copy the contents of LONG RAW column from one table in to the LONG RAW column of another.

Currently I am using a simple PL/SQL procedure, namely:

create or replace procedure migrate
is
begin

   for c in
(select data from table1)

   loop

   insert into table2
(new_data)

   values
(c.data);

   end loop;
end;

Although this is working, it appears that it is only moving the first 32K - which I presume is the limit on the variables for LONG RAWs in PL/SQL. Is PL/SQL implictly using a variable in this case?

Does anyone know a better/quicker way for doing this?

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't. Received on Thu Jul 22 1999 - 10:23:10 CDT

Original text of this message

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