1
<University>
<RegistrationCode>12859</RegistrationCode>
<Colleges>
<College>
<CollegeCode>0001</CollegeCode>
<CollegeName>NIMS</CollegeName>
</College>
<College>
<CollegeCode>0002</CollegeCode>
<CollegeName>OXFORD</CollegeName>
</College>
</Colleges>
</University>
我想使用SQL查詢從上面的XML中提取出來。有人可以幫助我嗎?使用SQL查詢讀取XML標記
RegistrationCode CollegeCode CollegeName
-----------------------------------------------
12859 0001 NIMS
12859 0002 OXFORD
可能的重複:http://stackoverflow.com/questions/15680259/parse-xml-in-sql-server – crush