Copying LONG to LOB with the ALTER TABLE...MODIFY statement : LONG « Large Objects « Oracle PL/SQL Tutorial






SQL> CREATE TABLE myLongTable1 (id NUMBER,long_data LONG);

Table created.

SQL>
SQL> INSERT INTO myLongTable1 VALUES (100,RPAD('A',200000,'A'));

1 row created.

SQL>
SQL> ALTER TABLE myLongTable1 MODIFY (long_data CLOB);

Table altered.

SQL>
SQL> drop table myLongTable1;

Table dropped.








34.6.LONG
34.6.1.long type column
34.6.2.Long raw type column
34.6.3.Long type column, not null
34.6.4.Copying LONG to LOB with the ALTER TABLE...MODIFY statement