Create trigger to insert into another table

前端 未结 4 1538
一向
一向 2021-01-26 08:09

I have some problem executing the trigger below:

CREATE OR REPLACE TRIGGER AFTERINSERTCREATEBILL
AFTER INSERT
ON READING
FOR EACH ROW 

DECLARE

varReadNo   Int;         


        
4条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-26 08:51

    Make sure that you have the necessary permissions on all the tables and access to the sequences you're using in the insert.

    I haven't done Oracle in awhile, but you can also try querying dba_errors (or all_errors) in order to try and get more information on why your SP isn't compiling.

    Something to the tune of:

    SELECT * FROM dba_errors WHERE owner = 'THEOWNER_OF_YOUR_SP';
    

提交回复
热议问题