trigger不能直接使用斷點調式:
不過可以通過 拋出異常 確定出現問題的位置,并通過打印出相關變量的值
RAISE_APPLICATION_ERROR(-20001, '工單狀態已經為最終狀態,不能變更!');
exception
when others then
dbms_output.put_line(:new.task_info_id||' '||sqlerrm||' '||sqlcode);
不過可以通過 拋出異常 確定出現問題的位置,并通過打印出相關變量的值
RAISE_APPLICATION_ERROR(-20001, '工單狀態已經為最終狀態,不能變更!');
exception
when others then
dbms_output.put_line(:new.task_info_id||' '||sqlerrm||' '||sqlcode);