再遇妖的问题, 先COMMIT , 记得写更新料号属性的时候也遇到过
作者: moonsoft(http://moonsoft.itpub.net)发表于: 2007.05.30 02:45
分类: Oracle基础/数据仓库/BI
出处: http://moonsoft.itpub.net/post/15182/290947
---------------------------------------------------------------
pause ; MESSAGE('s'||:ship_confirm_id); pause;
已经执行, 但是同时的UPDATE 语句就是不执行
IF (v_return_status = 'S') THEN
-- RAISE fail_api;
if :weight is not null then
update oe_order_headers_all
set attribute14 = :weight
where order_number = :order_number
and org_id = :parameter.g_org_id;
end if;
-- pause ; MESSAGE('s'||:ship_confirm_id); pause;
COMMIT;
update xx_oe_ship_confirm_all sc
set sc.shipped_flag = 'Y'
where sc.ship_confirm_id = :ship_confirm_id;
COMMIT;


