select * from 数据库名 for xml auto
select * from 数据库名 for xml auto,elements
转载于:https://www.cnblogs.com/qzc900809/archive/2012/12/22/2828685.html