好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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; 

这样就能更新了

查看更多关于oracle更新xml节点问题的一些细节的详细内容...

  阅读:18次