您好,我想像下面那样在oracle中合并两个表-
我从堆栈溢出尝试了以下答案,但没有得到像 Output table
这样的答案答案 0 :(得分:1)
使用union all
select id, name, rate,total from table1
union all
select id, name, rate,total from table2
答案 1 :(得分:1)
请尝试以下查询:
select * from (
select id, name, rate,total from table1
union all
select id, name, rate,total from table2
) as t
order by t.id asc