Hi

I am running Oracle 8.0.6 EE. I have a table with a long raw column. I have created a new table replacing the longraw column with a blob column. I would like to migrate my data into the new table. I have tried insert into new_table select ..,to_lob(longrawcolumn) from old_table. This command fails with an error. Any ideas how I can succesfully go round this problem.

Here is the comand as well as the error

SQL> insert into test2 select * from test1;
insert into test2 select * from test1
*
ERROR at line 1:
ORA-00997: illegal use of LONG datatype

SQL> insert into test2 select id, to_blob(img) from test1;
insert into test2 select id, to_blob(img) from test1
*
ERROR at line 1:
ORA-00904: invalid column name