Hi,
We have an application from vendor that creates a trigger in the database when it's installed.
The SQL like following:
CREATE TRIGGER XXXX.TR_insert
BEFORE INSERT ON XXXX.COMP
FOR EACH ROW
BEGIN
SELECT XXXX.S_COMP.nextval
INTO YYYY.genT.unique_num
FROM dual;
:new.theKey:=YYYY.genT.unique_num;
END;
S_COMP: is a sequence owned by YYYY
genT: a package owned by YYYY
When this sql is run, oracle told me there is compile error, but when I type 'show error', I got nothing. I appreciate any kind of help!!