不能对 xml 数据类型进行比较或排序,除非使用 IS NULL 运算符

标签:
杂谈 |
分类: ASP.NET_C# |
在使用group by的时候,不能对 xml 数据类型进行比较或排序,除非使用 IS NULL
运算符,因为有个字段是xml类型的,网上查了查,解决办法如下:
select cast (buildingTypeExtendProper
CAST 和 CONVERT (Transact-SQL)
SQL Server 2012
http://msdn.microsoft.com/Areas/Brand/Content/Msdn_ImageSprite.pngxml 数据类型进行比较或排序,除非使用 IS NULL 运算符" />
1(共 1)对本文的评价是有帮助
- 评价此主题
在 SQL Server 2012 中将表达式由一种数据类型转换为另一种数据类型。
http://msdn.microsoft.com/dynimg/IC128933.gif Transact-SQL 语法约定