2011-03-17 8 views

답변

18
set @xml.modify('replace value of (/a/@abb)[1] with 344') 

여기에 대해 자세히 알아보십시오. XML Data Modification Language (XML DML)

+0

더 자세히 알아보고 싶습니다. 하나의 노드 대신에'abb' 속성을 어떻게 갱신 할 수 있습니까? –

+0

여기에 질문을 게시했습니다. http://stackoverflow.com/questions/5347890/how-to-update-all-xml-attributes-value-in-an-xml-variable-using-t-sql –

관련 문제