I have a table that I need to update:
create table test_tab(id number, first varchar2(100), second clob);
insert into test_tab values (1, 'john', 'kowalski');
insert into test_tab values (2, 'michael', 'surname');
Now, for every record in my table, I want to append a string to the clob field. I could use an usual concatenation operator:
update test_tab set second = second || 'some_string,';
And this works, but because my actual table is like 80k rows, the update process lasts for too long.
I'm thinking about using DBMS_LOB.APPEND(), but I don't know how to use it in UPDATE and if it's gonna help the performance.
Any ideas? Thanks in advance.