sqlservice2005 xml字段查询的空值有关问题

sqlservice2005 xml字段查询的空值问题在对sqlserver2005的xml字段进行查询时发现:查询结果如果为空,显示

sqlservice2005 xml字段查询的空值问题

在对sqlserver2005的xml字段进行查询时发现:查询结果如果为空,显示的速度会很慢

例如:

select * from tablewhere fbfw.query('/Root/Person[text()=''xxx'']').exist('/Person[@checked = 0]')=1

?查询时间明显减少。这种写法是根据一个条件查询出符合条件的节点,再判断节点中的属性值。

?