从表里面导出数据XML: -- export declare @xml xml set @xml = (select * from ( select TableName = 'Schema', xmlData = ( select * from [Schema] where id = 337 for xml auto, root('Schemas') ) union select 'SchemaFile', ( select Id, SchemaId, Data = convert(varcha…