-1

我正在寻找这样的东西:

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
4

2 回答 2

2
select columnA, C-b from table1
union all
select columnD, C-E from table2
于 2012-09-21T12:07:07.237 回答
0

尝试这个

           select column1,column2 from tablename1
          union all 
          select column3,column4 from tablename2  
于 2012-09-21T12:11:11.307 回答