奥礼网
新记
如何把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
相似回答
大家正在搜
相关问题
如何把SQL Server多行查询结果合并在一行中
如何把SQL Server多行查询结果合并在一行中
sql server怎么把多行数据合并成一行
sql server 把多行合并一行,并连接成一个字符串
如何在一个sql查询语句中把某一个字段的多行的值拼在一起
SQL SERVER 如何把1列多行数据 合并成一列显示?
SQL SERVER 如何把1列多行数据 合并成一列显示,具...
SQL Server2008 怎么将一列的多行内容合并成一行...