the syntax for creating the HOME table and home details
create table home (F_NAME VARCHAR2(25),M_NAME VARCHAR2(25),C_NAME VARCHAR2(25));
create table home (F_NAME VARCHAR2(25),M_NAME VARCHAR2(25),C_NAME VARCHAR2(25));
the program for trigger
CREATE OR REPLACE TRIGGER HOME_BEFORE_DELETE
BEFORE INSERT
ON HOME
FOR EACH ROW
DECLARE
V_USERNAME VARCHAR2(25);
BEGIN
SELECT USER INTO V_USERNAME FROM DUAL;
INSERT INTO HOME_DETAILS
(F_NAME, M_NAME, C_NAME )
values
(:old.F_NAME,
:old.M_NAME,
:old.C_NAME ,V_USERNAME);
END
when executing it shows
ORA-24344: success with compilation error