I have the table:
create table data_table(
id number,
csv clob
);
csv contains data like this:
CONST ID DATA_1 DATA_2 .. DATA_N
100 1 asd 123 .. df
100 2 fgh 346 .. fg
I must find row by id, and change some DATA values, and save.
What is the best way to do it?
at first I want to use DBMS_UTILITY.comma_to_table, but found
http://asktom.oracle.com/pls/asktom/f?p=100:11:0%3a%3a%3a%3aP11_QUESTION_ID:1415803954123
example
BEFORE:
insert into data_table values(1, '100;1;asd;123;df;'||chr(10)||
'100;2;fgh;346;fg;'||chr(10) );
insert into data_table values(2, '101;2;fgh;346;ff;'||chr(10)||
'101;3;gfd;456;gh;'}}chr(10) );
execute csv_update(2);
AFTER
select csv from data_table;
100;1;asd;123;df;
100;2;XXX; 000;fg;
101;2;XXX; 000;fg;
101;3;gfd;456;gh;
my decision: