甲骨文存储过程循环表操作

创建或替换过程pubres_test

,和


BEGIN 

,,

,在(obj

,,选择resource_name、unit_name resource_code总和(update_count) update_count,,

,,从winf_pubres_update_log 

,,集团由resource_name unit_name resource_code)

,,,,,

,,循环

,,,,,,——统计汇总

,,,,,,插入WINF_PUBRES_allUPDATE_LOG (unit_name resource_name、resource_code update_count, update_date)

,,,,,,值(obj.unit_name obj.resource_name、obj.resource_code to_char (obj.update_count) sysdate);


,,结束循环;

结束pubres_test;


甲骨文存储过程循环表操作