File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ Specifies an XQuery against an instance of the **xml** data type. The result is
2424## Syntax
2525
2626``` syntaxsql
27-
2827query ('XQuery')
2928```
3029
@@ -43,8 +42,8 @@ The following example declares a variable **\@myDoc** of **xml** type and assign
4342The query retrieves the <` Features ` > child element of the <` ProductDescription ` > element:
4443
4544``` sql
46- declare @myDoc xml
47- set @myDoc = ' <Root>
45+ DECLARE @myDoc XML
46+ SET @myDoc = ' <Root>
4847<ProductDescription ProductID="1" ProductName="Road Bike">
4948<Features>
5049 <Warranty>1 year parts and labor</Warranty>
@@ -107,7 +106,6 @@ SELECT CatalogDescription.query('<Product ProductModelID="{ /PD:ProductDescripti
107106 AS Result
108107FROM Production .ProductModel
109108WHERE CatalogDescription .exist (' /PD:ProductDescription/PD:Features/WM:Warranty ' ) = 1 ;
110-
111109```
112110
113111## See Also
You can’t perform that action at this time.
0 commit comments