合并两个select语句中的列 [英] Combining columns from two select statement

查看:121
本文介绍了合并两个select语句中的列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我需要结合两个单独的select语句的列/结果,我该怎么做...请帮助....
谢谢"

Hi every one,
I need to combine columns/results of two separate select statement, how can i do so plz help ....
"Thanking you"

推荐答案

很难找到您需要的东西.
UNION ALL将添加从每个语句接收到的行,例如
Hard to find out what you need.
A UNION ALL will add the rows received from each statement, e.g.
SELECT * FROM TABLE1
UNION ALL
SELECT * FROM TABLE2


  select T1.*,T2.* from tableT1,Table2 T2


or 

select * from  table1
union all
select * from table2

or

select  Field1 from table1
union
select field2 from table2


这篇关于合并两个select语句中的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆