我正在寻找这样的事情:
Table 1:
Column-A C-B C-C
1 1 1
2 5 2
4 3 2
Table 2:
Column-D C-E
1 3
7 9
6 5
result set:
1 1
2 5
4 3
1 3
7 9
6 5
答案 0 :(得分:2)
select columnA, C-b from table1
union all
select columnD, C-E from table2
答案 1 :(得分:0)
试试这个
select column1,column2 from tablename1
union all
select column3,column4 from tablename2