Question: First create a table called Person ( Don t insert any values into created table ) Write code for Trigger and run the trigger program
First create a table called PersonDont insert any values into created table
Write code for Trigger and run the trigger program
Insert values into the created table after successful completion of trigger program and see the
trigger
output.
a CREATE TABLE PERSONID INTEGER, NAME VARCHAR DOB DATE, PRIMARY KEYID;
b
CREATE OR REPLACE TRIGGER PERSONINSERTBEFORE
BEFORE INSERT ON PERSON
FOR EACH ROW
BEGIN
DBMSOUTPUT.PUTLINEBEFORE INSERT OF:NEW.NAME;
END;
c INSERT INTO PERSON VALUESJOHN DOESYSDATE;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
