有的节点是<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;
这样就能更新了
最后
以上就是醉熏茉莉最近收集整理的关于oracle更新xml节点问题的一些细节的全部内容,更多相关oracle更新xml节点问题内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复