This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 有人在SQL 2005中玩XQuery吗?这个问题该怎么解决?declare @zz varchar(1000)
declare @x xml
set @x = '
<root>
<or>
<prefix>Kingsport</prefix>
<diskID>oopp</diskID>
</or>
<or>
<prefix>Phoenix</prefix>
<diskID>lloo</diskID>
</or>
<billID>1122</billID>
<lName>Wang</lName>
<fName>Zheng</fName>
<cost highlow="gt">2233</cost>
</root>'
select @x.query('
for $bi in //billID/text()
return ">"
')
运行完之后系统并不打印出“>” , 而是 > , 头疼之极,我估计>是Xquery的系统关键字之一,可怎样消除让它正确打印出“>” ?
-xinku(辛苦森在中国);
2006-8-28
{501}
(#3172178@0)