读书人

请教在oracle中怎么将两列合并成一列s

发布时间: 2012-03-21 13:33:15 作者: rapoo

请问在oracle中如何将两列合并成一列select出来
现有一张table.其中里面的两列是:
A B
1 15
2 75
7 2
3 12

请问如何将它们做一列select出来.结果要是这样的:
A
1
2
7
3
15
75
12

感激不尽!

[解决办法]
select a from table
union all
select b from table;
[解决办法]

探讨
select a from table
union all
select b from table;

[解决办法]
探讨
select a from table
union all
select b from table;

读书人网 >oracle

热点推荐