oracle更新xml节点问题的一些细节


本文向大家介绍oracle更新xml节点问题的一些细节,包括了oracle更新xml节点问题的一些细节的使用技巧和注意事项,需要的朋友参考一下

有的节点是<emali/> 这样的,所以直接

update table1 e set e.xxx_xml=updatexml(e.xxx_xml,'/data/contact/email/text()',
'value'
)
where 1=1;

是不能更新的

update table1 e set e.xxx_xml=updatexml(e.xxx_xml,'/data/contact/email',
'<email>'|| 'value' || '<email/>'
)
where 1=1;

这样就能更新了