oracle 存储过程 case when then
来源:互联网 发布:生命的意义 知乎 编辑:程序博客网 时间:2024/04/30 15:23
-- Created on 2017/5/12 by ADMINISTRATOR
declare
-- Local variables here
i integer;
imonth int;
updatestr varchar2(50);
daystr varchar2(5);
begin
imonth:=5;
-- Test statements here
case imonth
when 1 then daystr:=31; when 2 then daystr:=28;
when 5 then daystr:=31; else daystr:=30;
end case;
dbms_output.put_line(daystr);
end;
declare
-- Local variables here
i integer;
imonth int;
updatestr varchar2(50);
daystr varchar2(5);
begin
imonth:=5;
-- Test statements here
case imonth
when 1 then daystr:=31; when 2 then daystr:=28;
when 5 then daystr:=31; else daystr:=30;
end case;
dbms_output.put_line(daystr);
end;
-------------------when 后面多个会报错,要end case-----------------
0 0
- oracle 存储过程 case when then
- oracle case when then
- oracle case when then
- oracle case when then
- Oracle case when then else
- oracle case when then 条件判断
- oracle left join case when then
- Oracle中的case when then 用法.
- [ORACLE] case when then else end 应用
- [ORACLE] case when then else end 应用
- oracle case when then end 语句
- oracle case when then else end
- [ORACLE] case when then else end 应用
- [ORACLE] case when then else end 应用
- [ORACLE] case when then else end 应用
- case when then else
- mssql ,case ,when,then
- case when then else
- reviewboard安装解读
- Gradle自定义项目结构
- CSS特性
- RDD,DataFrame 和 Dataset区别以及各自用途
- IOS11操作系统满满黑科技值不值得拥有?
- oracle 存储过程 case when then
- java自定义注释
- oracle批量update
- iar Error[Li005] no definition for "assert_failed"
- Angularjs 处理CheckBox 处理要传输的数据
- Android7.0启用摄像头拍照
- 设计模式(三)--代理模式
- [笔记]:[字符串]trie数的基本构造
- LineChartView(折线图)的简单使用