用游標實現
declare
CURSOR D_CURSOR_CUS_INFO IS
select t
t
a
from T_CUS_OWE_MONEY_
left join T_CUS_OWE_MONEY_
left join (select s
case
when s
when s
end
) as heatingArea from sk s where s
where t
begin
FOR everyRow IN D_CURSOR_CUS_INFO
loop
update T_CUS_YEAR_STATUS t
set t
t
where t
and t
end loop;
commit;
end;
From:http://tw.wingwit.com/Article/program/Oracle/201311/19086.html