如题,例如
select a.* , c.ovt_date , 
     b.shf_at1 , 
     case when b.shf_of1 < b.shf_at1 then trunc(a.rcd_dat) + 1 + (b.shf_of1 - trunc(b.shf_of1))
          else b.shf_of1 end
     from att_rcd a, att_supply_ovt_t c , att_shf b
      where rcd_dat = to_date('20061127','yyyymmdd') and 。省略以上SQL可以有运行结果,但是在定义游标时却出错,如:cursor test is 
   select.......语句如上段为何出错?