您的位置:首页 > 数据库 > Oracle

oracle存储过程中if嵌套

2011-08-21 17:48 106 查看
if (v_compute_form = 1) then
current_fee := v_square * price; --本月费用
if (v_overdue_flag = 1) then
overdue_fine := previous_fee * 5 / 10000; --滞纳金
end if;
elsif (v_compute_form = 2) then
current_fee := record_count * price + v_plan_count1 * extra_price1 + v_plan_count2 * extra_price2 ;
end if;
  阅读更多
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: