Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下xml格式。
需要以表格格式显示此数据。
一旦你使你的 XML 有效,使用nodes
nodes
select t.x.value('FacilityID[1]','int') as FacilityID, t.x.value('Category[1]','int') as CategryID from @yourxml.nodes('/Facilities/Facility') t(x)