case my_colimn when '1' then '' else ''
解决方案 »
- 关于oracle的sequence
- 一个LDAP的问题,网上有提问,无回答
- 收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 希望会orcle数据库的各位,帮我比较详细地讲解一下它的运行过程和原理!
- OracleJobScheduler××××服务如何用oracle11文本命令启动
- 求高手解决存储过程中对CLOB进行操作,急急急!!!!
- rman备份出错 !!!!!!!!!急急!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1111
- oracle DBCA和oracle DBA 都是什么的简写?? 都是干什么的哦,谁能简单说一下
- JEMSF
- oracle存储过程触发器问题高手帮忙啊!
- 我oracle进不处,假如要重新安装oracle,原来的数据库数据还在不在?
- 求助 EXP
- 急,在oracle哪个系统表中能够查出用户表是否存在
你可以这样呀:when '4'
when '5'
when '6'
then ' ******' else '********' end ..
试试了..
case
when '1'
then
case
when '11' then ...
when '12' then ...
end case
end case
when '4'or '5' or '6' then .........
还有,后面好像不是end case 而是 end
只能when '4' then
when '5' then
when '6' then
这样写,还有就是end case 没有错我用的10G可能和你的版本不同有关
我习惯写成
case when my_column='4' or my_column='5' or my_column='6' then ....
when ..........then
end
呵呵,应该是一样的
也可以没有
CREATE OR REPLACE PROCEDURE pro1 (id in number)AS
begin
case when id=1
then
insert into aaaa values(id,'aa');
insert into cc values(id,'aa');
else
insert into aaaa values(id,'xxx');
end case;
commit;END pro1;