How do you copy "long" data from one table to another?

From: Anil Nair <anil_at_scopus.com>
Date: 1995/07/06
Message-ID: <DB9pK1.GE2_at_scopus.com>#1/1


  1. How do you write a PL/SQL procedure which copies data from one "long" column in a table to another "long" column in another table.

Something which would have the same effect as:

update to_table
set to_long_column =

   (select from_long_column
    from   from_table
    where  from_keyname = from_key)

where to_keyname = to_key

if Oracle allowed "long" columns to be selected in sub-queries.

2. Can that procedure take the names of the tables and columns as arguments?

Thanks for any suggestions,

Anil Received on Thu Jul 06 1995 - 00:00:00 CEST

Original text of this message