外国人写的是对的
For the first error, you can tell it you are trying to set the text of the element if it is untyped. UPDATE MyTable SET xml.modify ('replace value of (/root/child/grandchild/myelement/text())[1] with xs:dateTime("2002-05-30T09:30:10Z")') WHERE id = '00000000-0000-0000-0000-000000000000'