oracle更新xml節(jié)點問題的一些細(xì)節(jié)
更新時間:2014年08月01日 10:01:26 投稿:whsnow
本節(jié)主要介紹了oracle更新xml節(jié)點問題的一些細(xì)節(jié),需要的朋友可以參考下
有的節(jié)點是<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;
這樣就能更新了
您可能感興趣的文章:
相關(guān)文章
Oracle數(shù)據(jù)庫中通用的函數(shù)實例詳解
OracleSQL提供了用于執(zhí)行特定操作的專用函數(shù),這些函數(shù)大大增強了SQL語言的功能,下面這篇文章主要給大家介紹了關(guān)于Oracle數(shù)據(jù)庫中通用函數(shù)的相關(guān)資料,需要的朋友可以參考下2022-03-03oracle to_char函數(shù)將number轉(zhuǎn)成string
很多數(shù)據(jù)轉(zhuǎn)換處理操作時,會遇到將0.007007040000轉(zhuǎn)換成0.70%的需求,我們使用Oracle 的SQL 函數(shù) to_char可以實現(xiàn)這種轉(zhuǎn)換,需要了解的朋友可以參考下2012-11-11Oracle 當(dāng)前用戶下所有表的記錄總數(shù)
Oracle 數(shù)據(jù)庫下 查詢當(dāng)前用戶下所有表的記錄總數(shù)2009-07-07