case语句在不同机器上结果不同
华生豆 2006-07-18 10:49:43 oracle 9i,一个case语句,在一台服务器上可以正常运行,但是在另一台服务器上一直报错“缺少右括号”,请问是怎么回事呢?
case语句:
select p.Declarer 名称,
p.PrjAddress 地址,
o.GovDeptName 单位,
o.FlowName 业务,
(case when o.status=0 then '正在办理' else (case when p.email is null then '没有邮箱' else (case when o.AppraiseValue is null then '无' else '有' end) end) end) as 评价 ,
o.Commission as 代办单位
from hygov_work_FQ.T_Operation o, hygov_work_FQ.T_Project p
where o.PrjID = p.PID
order by o.Commission