Search
 
SCRIPT & CODE EXAMPLE
 

SQL

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')
Comment

PREVIOUS NEXT
Code Example
Sql :: procedure excute monthly oracle 
Sql :: group_concat only returns one row 
Sql :: Time difference in hh:mm:ss 
Sql :: supabase change timezozne 
Sql :: how to change null display in psql 
Sql :: OLAP queries 
Sql :: mysql workbench cannot find password 
Sql :: subquery aggregation 
Sql :: ltrim in sql 
Sql :: alter tablespace undotbs1 add datafile 
Sql :: triggers in mysql 
Sql :: how much space does sql server take per row 
Sql :: fetcht he leftmost word in a comma separated string in sql 
Sql :: raise notice concat string postgresql 
Sql :: SQLServerException.makeFromDatabaseError 
Sql :: sql orcale i forgot what my name & password was 
Sql :: oracle query archive mode 
Sql :: mysql clone table with data and add attribute 
Sql :: utiliser 3 jointures mysql 
Sql :: big table in mysql 
Sql :: is sql injection still possible 
Sql :: show specific partition hive query 
Sql :: split string update first value in sql server 
Sql :: Oracle webcenter content search enginer 
Sql :: how to create a table from another table in sql derby 
Sql :: site:av.ru "files" 
Sql :: android sqlite query con join 
Sql :: yesql 
Sql :: SQL Deleting a View 
Sql :: update mysql from paypal shopping cart and ipn 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =