Oracle数据库增删查操作与XML知识点总结及XMLTypeIndex索引讲解
发布时间
阅读量:
阅读量
在更新XML多节点时,请务必注意Oracle的语法规定:所有字段名必须采用小写字母,并非如此操作将导致错误
Update ZLXA银医通日志
Set 结算日志 = Xmlquery('copy $t := $x modify(
(for $i in $t/Response/响应报文CODE
return replace value of node $i with ''B002'')
,(for $i in $t/Response/响应报文MSG
return replace value of node $i with ''查询成功'')
) return $t'
Passing 结算日志 As "x" Returning content)
Where GetXMLValue(结算日志, '结帐ID') = 24702314;
------------------------
或
------------------------
Update ZLXA银医通日志 E
Set E.结算日志 = updatexml(e.结算日志, '/Response/指令ID/text()', r.insid, '/
全部评论 (0)
还没有任何评论哟~
