DBMS Lab Cycle 8 (Triggers)
--> Create the table STORE, with the fields as given CODE VARCHAR2(15), NAME VARCHAR2(15), QTY NUMBER, PRICE NUMBER Create procedures to perform the following actions into the table STORE. CREATE TABLE store( code VARCHAR2(15), name VARCHAR2(15), qty NUMBER, price NUMBER, PRIMARY KEY(code) ); INSERT record using procedure CREATE OR REPLACE PROCEDURE insertrow(code1 IN VARCHAR2,name1 IN VARCHAR2,qty1 NUMBER,price1 NUMBER) IS BEGIN INSERT INTO store VALUES(code1,name1,qty1,price1); DBMS_OUTPUT.PUT_LINE('One row inserted'); END; / SET SERVEROUTPUT ON DECLARE code VARCHAR2(15); name VARCHAR2(15); qty NUMBER; price NUMBER; BEGIN code:=&enter_the_code; name:=&enter_the_name; qty:=&enter_the_quantity; price:=&enter_the_price; insertrow(code,name,qty,price); END; DELETE record CREATE OR REPLACE PROCEDURE deleterow(code1 IN VARCHAR2) IS BEGIN DELETE FROM store WHERE code LIKE code1; DBMS_OUTPUT.PUT_LINE('One row deleted'); END; / SET SERVEROUTPUT...