1
<Root>
<Sub>
<Name>a</Name>
<Value>1</Value>
</Sub>
<Sub>
<Name>b</Name>
<Value>2</Value>
</Sub>
</Root>
我知道我可以做一個過濾
SELECT * FROM table WHERE column.exist('/Root/Sub[Name="a" and Value="1"]') = 1
但我怎麼兩個名稱/值對過濾器? a/1和b/2?
類似的問題在這裏回答: http://stackoverflow.com/questions/6162273/search-for-multiple-values-in-xml-column-in -sql – alxK 2015-02-07 16:11:24