declare @Xml xml
set @Xml = '<Root><notes id=''1''>aa</notes><notes id=''2''>bb</notes></Root>'
---------------------插入xml字段-----------------------
insert into test (test) values (@Xml)
-------------------修改xml字段-------------------------
update test set test.modify('replace value of (/Root/notes[1]/text())[1] with ''cccccc'' ')
----------------查询xml字段-----------------------------
select test.query('(/Root/notes[1]/text())[1]') from test