創建一個存儲過程后,執行編譯是出現以下問題,點擊確定又無法查看錯誤信息
創建存儲過程的語法
create or replace procedure PROC_PROD_TEST ( searchIds in varchar2, execCount out integer ) as --Num1 integer; begin for odr in(select * from DXC_GOODS where MID in(searchIds) )loop if odr.MID=10 or odr.MID=15 then dbms_output.put_line('跳過操作,產品ID:'|| odr.MID || ',Name:'|| odr.NAME1); continue; elsif odr.MID=12 then dbms_output.put_line('插入操作,產品ID:'|| odr.MID || ',Name:'|| odr.NAME); --insetSql else dbms_output.put_line('修改操作,產品ID:'|| odr.MID || ',Name:'|| odr.NAME); --updateSql end if; end loop; end;
如何查看編譯錯誤
--查看存儲過程編譯后的錯誤信息-- select * from SYS.USER_ERRORS where NAME = upper('PROC_PROD_TEST');
參考網址:https://www.cnblogs.com/YuyuanNo1/p/7541602.html