Mysql的XML字段部分结点更新问题

解决方法:
Mysql:
UPDATE
RPT_MNG T1
SET
T1.RPT_XML=updateXML(T1.RPT_XML ,'//ROOT/ROW1/COL1','<COL1>1.77</COL1>'), T1.RPT_XML=updateXML(T1.RPT_XML ,'//ROOT/ROW1/COL2','<COL2>2.77</COL2>'),
WHERE T1.ID='100001'

Oracle:
UPDATE RPT_MNG T1
SET T1.RPT_XML=updateXML(T1.RPT_XML ,'//ROOT/ROW1/COL1','1.77','//ROOT/ROW1/COL2','2.77'), WHERE T1.ID='100001'

你可能感兴趣的:(oracle,xml,mysql)