I am trying to create a simple trigger with following code -
CREATE OR REPLACE TRIGGER trg_menu_id BEFORE INSERT ON "menu" FOR EACH ROW
BEGIN
SELECT
menu_id_seq.NEXTVAL INTO : NEW.MENU_ID
FROM
dual ;
END ;
But I am getting - [Err] ORA-24344: success with compilation error I don't understand what I am doing wrong.