a b c
1 2 3
1 2 3
如何转为
1 1
2 2
3 3
1 2 3
1 2 3
如何转为
1 1
2 2
3 3
解决方案 »
- Oracle存储过程,希望有高手解答下
- 【Oracle两张表之间的一个问题】
- 请教位图索引的结构
- 菜鸟总是遭遇各种拦路。。。写了个存储过程,怎么在oracle里调用
- expdp導出表
- oracle 安装 samples 数据库
- 请教:用户sys和system的区别在哪?
- 我想查看我的每条语句的执行时间 ,请问打开显示时间的命令是那个(我曾看过,忘了)????
- oracle9.2 修改参数optimizer_index_caching =90时 报错无法应用动态参数
- 在SQL PLUS下怎样得到一张表的索引
- 图书管理数据库中预约功能,要求输入借书证号,isbn,一个isbn对应多本书即多个图书编号,怎样自动完成在预约时自动借出某本书。
- 监听究极问题,网上查不到的,谁有经验?
from (
select '1' A,'2' B,'3' C from dual
union all
select '1' A,'2' B,'3' C from dual)
union
select decode(B,'2',2),B
from (
select '1' A,'2' B,'3' C from dual
union all
select '1' A,'2' B,'3' C from dual)
union
select decode(C,'3',3),C
from (
select '1' A,'2' B,'3' C from dual
union all
select '1' A,'2' B,'3' C from dual)
(
select '1' A,'2' B,'3' C from dual
union all
select '1' A,'2' B,'3' C from dual)
select decode(A,'1',1),A from t1
Union
select decode(B,'2',2),B from t1
union
select decode(C,'3',3),C from t1这两个结果都一样的