这是程序:
create or replace procedure CHECK_INFO_ACTUAL_AMOUNT_UPD(
ACTUAL_AMOUNT IN CHECK_INFO.ACTUAL_AMOUNT%TYPE,
CHECK_INFO_ID IN CHECK_INFO.ID_CHECK_INFO%TYPE,
TOTAL_ADJUSTMENT IN CHECK_INFO.TOTAL_ADJUSTMENT_ACCRUEMENT%TYPE
)
is
begin
UPDATE CHECK_INFO C SET C.ACTUAL_AMOUNT = ACTUAL_AMOUNT,
C.IS_ACCUMULATION_COMPLITED = 5,
C.TOTAL_ADJUSTMENT_ACCRUEMENT = TOTAL_ADJUSTMENT
WHERE C.ID_CHECK_INFO = CHECK_INFO_ID;
COMMIT;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
ROLLBACK;
end CHECK_INFO_ACTUAL_AMOUNT_UPD;
问题是当我通过传递参数时,程序不会更新 ACTUAL_AMOUNT 字段,但是当我在程序内部分配值时它会更新
...
UPDATE CHECK_INFO C SET C.ACTUAL_AMOUNT = 111,
...
我试图调试值以传递参数... 问题是什么???