SQL>
SQL> create table long_table
2 ( id int primary key,
3 data long
4 )
5 /
Table created.
SQL> create table clob_table as select id, to_lob(data) data from long_table;
Table created.
SQL>
SQL> insert into clob_table select id, to_lob(data) from long_table;
0 rows created.
SQL>
SQL> begin
2 insert into clob_table select id, to_lob(data) from long_table;
3 end;
4 /
PL/SQL procedure successfully completed.
SQL>
SQL> drop table clob_table;
Table dropped.
SQL>
SQL> drop table long_table;
Table dropped.
34.9.TO_LOB |
| 34.9.1. | Call to_lob to convert long to clob |
| 34.9.2. | TO_LOB demo |