Guest_imported
New member
- Jan 1, 1970
- 0
why is this trigger not working?
when i execute this trigger, it gives an error that says:
identifier call_fin must be declared.
I know there is a field called call_now on the table tcall:
Please take a look:
create or replace trigger archive_call
after insert or update on tcall
FOR EACH ROW
BEGIN
IF (call_now = 'N' AND call_period = 'X') then
BEGIN
RAISE_APPLICATION_ERROR(-20001,'YOU MUST ENTER THE TYPE OF CALL');
DBMS_OUTPUT.PUT_LINE('YOU MUST ENTER THE TYPE OF CALL');
END;
call_period := call_period + 1;
END IF;
END;
tankem
when i execute this trigger, it gives an error that says:
identifier call_fin must be declared.
I know there is a field called call_now on the table tcall:
Please take a look:
create or replace trigger archive_call
after insert or update on tcall
FOR EACH ROW
BEGIN
IF (call_now = 'N' AND call_period = 'X') then
BEGIN
RAISE_APPLICATION_ERROR(-20001,'YOU MUST ENTER THE TYPE OF CALL');
DBMS_OUTPUT.PUT_LINE('YOU MUST ENTER THE TYPE OF CALL');
END;
call_period := call_period + 1;
END IF;
END;
tankem