I have a XML Column in My Table. The XML Structure is something like this:
<Nodes>
<Node>
<Name>a</Name>
</Node>
<Node>
<Name>a</Name>
</Node>
</Nodes>
I am trying to insert in both the nodes: I tried this:
SET @xml.modify('
insert <Phone>111</Phone>
into (/Nodes/Node)[1]')
But this inserts Phone in just first occurrence.