我是 SQL Server 和 T-SQL 的新手。如何在 SQL Server 2008 R2 中查询出此 xml 中存储的信息?
XML:
<smp:Root xmlns:smp="http://tempuri.org/smp.xsd" header="Test Title">
<smp:Sections>
<smp:G3 idnumber="01">
<SectionHost>ABC</SectionHost>
</smp:G3>
<smp:G2 idnumber="01">
<SectionHost>DEF</SectionHost>
</smp:G2>
</smp:Sections>
</smp:Root>