0
如何更新XML列中的某些行?SQL Server中的XML列更新
UPDATE dbo.tablename
SET col_name.modify('replace value of (/ArrayOfPromotionRuleBase/PromotionRuleBase/ExpirationDate/text())[1] with ("2017-01-03")')
如何在上述查詢中使用以下where
子句?它只應用於我在where子句中使用的代碼。
WHERE code LIKE 'XYZ123'
XML代碼: enter image description here
能否請你告訴我們的XML內容 - 一個或兩個樣本? –
你能指定* code *是什麼嗎?它是xml colum,xml屬性,列嗎? –
https://i.stack.imgur.com/S6Q0d.png –