如何把SQL Server多行查询结果合并在一行中

如题所述

第1个回答  2016-10-17
select a=t1.col1,b=t1.col2 from table1 t1
union
select a=t2.col1,b=t2.col2 from table2 t2

相似回答