for example:
select
case a
when 1 then 'a'
when 2 then 'b'
when 3 then 'c'
else 'd'
end
from tab_name;
select
case a
when 1 then 'a'
when 2 then 'b'
when 3 then 'c'
else 'd'
end
from tab_name;
解决方案 »
- oracle10g的Dblink的问题ORA-02020
- store procedure 中 in 加變數,怎麼寫?
- 想把oracle学的更好一点,高手们推荐两本书吧!
- suse 下 能exp 不能imp 的问题
- oracle怎么查最近的n条记录?
- SQL2000、mySQL和ORACLE数据库有哪些优点?
- 求一在Oracle中关于日期比较的语句。
- 求教oracle sql语句
- 求一Sql語法
- Decode 函数能不能实现: Decode(A,'Y',"yes",'no')意思是如果A的值为Y,则为yes,否则为no
- 在sqlplus里怎么执行带输出参数的过程?
- 请问关于oracal 与 c++的编程问题
oracle8.16可以用select (case a when
'5' then '3' else '4') from table
oracle8.16不可以用select (case a when
'5' then '3' else '4') from table
只能是
select (case when 4<5
then '3' else '4'END ) from dual