2
我想選擇Type值,其中下面的xml位於SQL Server 2005數據庫的表的xml類型列中。Xpath SQL Server查詢
<Something xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Id xmlns="http://something.com/">1921</Id>
<Date xmlns="http://something.com/">1901-01-01T00:00:00Z</Date>
<Schedule xmlns="http://something.com/">Region</Schedule>
<Filters xmlns="http://something.com/">
<Data>
<Id>99999</Id>
<Name>CS</Name>
<Type>SomeType</Type>
</Data>
</Filters>
</Something>
完美的工作。謝謝! – user1171745