update 表名 t set 扣税= case (t.计税工资)
when ((t.计税工资 <= 1500) and (t.计税工资 > 0)) then t.计税工资*0.03
when ((t.计税工资 <= 4500) and (t.计税工资 > 1500)) then t.计税工资*0.1-105
when ((t.计税工资 <= 9000) and (t.计税工资 > 4500)) then t.计税工资*0.2-555
when ((t.计税工资 <= 35000) and (t.计税工资 > 9000)) then t.计税工资*0.25-1005
when ((t.计税工资 <= 55000) and (t.计税工资 > 35000)) then t.计税工资*0.30-2775
else 0 end
where t.工资类别='月薪'
请哪位高手指点一下,谢谢!
这是一个oracle计税公式,运行时出错missing right parenthesis
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
3条回答 默认 最新
- Lizzy莲 2015-06-03 01:00关注
update 表名 t set 扣税= case (t.计税工资)
when ((t.计税工资 <= 1500) and (t.计税工资 > 0)) then t.计税工资*0.03case后面的 (t.计税工资) 去掉
解决 2无用