这是我的问题:从列中的以下XML中,我想知道名为“已启用”的变量的值是否等于'是'给定的步骤标识和一个组件Id。XPath来获取SQL XML值
'<xml>
<box stepId="1">
<components>
<component id="2">
<variables>
<variable id="3" nom="Server" valeur="DEV1" />
<variable id="4" nom="Enabled" valeur="Yes" />
</variables>
</component>
<component id="3">
<variables>
<variable id="3" nom="Server" valeur="DEV1" />
<variable id="4" nom="Enabled" valeur="No" />
</variables>
</component>
</components>
</box>
<box stepId="2">
<components>
<component id="2">
<variables>
<variable id="3" nom="Server" valeur="DEV2" />
<variable id="4" nom="Enabled" valeur="Yes" />
</variables>
</component>
<component id="3">
<variables>
<variable id="3" nom="Server" valeur="DEV2" />
<variable id="4" nom="Enabled" valeur="No" />
</variables>
</component>
</components>
</box>
</xml>'
什么是@ x'? *(填充评论到15个字符)* – 2013-02-05 16:39:39
我怀疑他有 'DECLARE @x XML =(xml from question);' 上面他的SQL Server查询窗口中的语句,以便使用该XML进行测试,但是将其从他的回答是因为它会是多余的。所有这一切说,我怀疑它是一个包含问题的XML的变量。 – sirdank 2014-02-25 14:53:39