首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

如何合并两个select * from table for xml auto的结果

2012-01-20 
怎么合并两个select * from table for xml auto的结果select*fromtableforxmlauto查询结果为: actionid

怎么合并两个select * from table for xml auto的结果
select   *   from   table   for   xml   auto
查询结果为: <action   id= "1 "   />

select   *   from   table1   for   xml   auto
查询结果为: <company   cid= "51 "   sintime= "2006-05-12 "   spantime= "5 "   />
怎么合并上面的两个查询结果为一个,如:
<action   id= "1 "   />
<company   cid= "51 "   sintime= "2006-05-12 "   spantime= "5 "   />


[解决办法]
up

热点排行