SELECT 1 as Tag,
NULL as Parent,
id as[area!1!ID!xml],
name as [area!1!Name!xml],
pid as [area!1!PID!xml],
zipcode as [area!1!zipcode!xml]
FROM area
FOR XML EXPLICIT,root('Areas')

 

SQL2008 查询XML

结果:

SQL2008 查询XML

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2021-04-21
  • 2021-11-16
  • 2021-06-05
猜你喜欢
  • 2022-12-23
  • 2022-03-05
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-03
相关资源
相似解决方案