I found the following link very useful, but I would like to ask further to it
Update xml tag in a CLOB column in Oracle
Using the same data in previous post:
create table tmp_tab_noemail_test (sce_msg clob);
insert into tmp_tab_noemail_test values (
'<Energy xmlns="http://euroconsumers.org/notifications/2009/01/notification">
<Gender>M</Gender>
<FirstName>MAR</FirstName>
<Name>VAN HALL</Name>
<Email/><Telephone>000000000</Telephone>
<InsertDate>2013-10-09</InsertDate>
</Energy>');
update tmp_tab_noemail_test p1
set p1.sce_msg = updatexml(xmltype(p1.sce_msg),
'/Energy/InsertDate/text()','Not Valid',
'xmlns="http://euroconsumers.org/notifications/2009/01/notification"').getClobVal();
Now, what if I wanna look up to another table Account. It has column: acct_num
, name
, date_of_birth
How can I update InsertDate tag value = Account.date_of_birth where Name tag value = Account.name
?
Is it possible to do? Thanks!