APPENDIX B

image

XQuery Data Types

SQL Server 2012 supports the data types defined in the XQuery Data Model (XDM). The supported data types are listed with their definitions in Table B-1. The diagram in Figure B-1 is a quick reference showing the relationships between the XDM data types.

Table B-1. XQuery Data Types

Type Description
Base Types
xs:anySimpleType This is the base type for all simple built-in types.
xs:anyType This is the base type for xs:anySimpleType and complex built-in types.
Date/Time Types
xs:date This type represents a Gregorian calendar–based date value exactly one day in length, represented in the format ...

Get Pro T-SQL 2012 Programmer's Guide, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.