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 Person(Dont 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 PERSON1(ID INTEGER, NAME VARCHAR2(30), DOB DATE, PRIMARY KEY(ID));
(b)
CREATE OR REPLACE TRIGGER PERSON_INSERT_BEFORE
BEFORE INSERT ON PERSON1
FOR EACH ROW
BEGIN
DBMS_OUTPUT.PUT_LINE(BEFORE INSERT OF||:NEW.NAME);
END; /
(c) INSERT INTO PERSON1 VALUES(1,JOHN DOE,SYSDATE);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!