Answers for "SQL SERVER xquery count child nodes"

SQL
0

SQL SERVER xquery count child nodes

This will count the number of Colors nodes which is 1.

select @MyXML.value('count(/SampleXML/Colors)', 'int')

This will count the number of rows in Colors which is 5.

select @MyXML.value('count(/SampleXML/Colors/*)', 'int')
Posted by: Guest on May-18-2021

Code answers related to "SQL SERVER xquery count child nodes"

Code answers related to "SQL"

Browse Popular Code Answers by Language