Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Loading from a column
would something like
insert into table2
select substr(data_x,1,10),to_number(substr(data_x,11,10)) from table1;
do the job.
this insert into 2 columns the first 10 characters of DATA_X into the first column and the second 10 characters into the second column after having converted the characters to number format.
bear in mind this is simplistic with only 2 columns and only one conversion to a different datatype with nothing fancy as a format for that conversion.
Regards Kevin Received on Thu Feb 05 2004 - 05:54:51 CST