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

 更新时间:2014年08月01日 10:01:26   投稿:whsnow  
本节主要介绍了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;

这样就能更新了

您可能感兴趣的文章:

相关文章

最新评论