Oracle SQL, PLSQL, APEX How To's by Dr. S. Raghunathan - HTML preview

PLEASE NOTE: This is an HTML preview only and some elements such as links or page numbers may be incorrect.
Download the book in PDF, ePub, Kindle for a complete version.

THE following trigger can be used for RAAK-TRANS-DETAIL CREATE OR REPLACE TRIGGER  "RAAK-TRANS-DETAIL-BI" BEFORE

INSERT OR UPDATE on "RAAK-TRANS-DETAIL" for each row

begin

 

if :NEW,"RECORD-ID" IS NULL THEN

 

:NEW,"RECORD-ID" := RECORD-ID-SEQ,NExTVAL ; END IF;

end;

 

 

 

The following trigger will be created for balance-sheet table.

 

 

CREATE OR REPLACE TRIGGER "BI-BALANCE-SHEET" before insert on "BALANCE-SHEET"

for each row

 

begin

 

if :NEW."RECORD-ID" is null then

 

select "RECORD-ID-SEQ".nextval into :NEW."REC-ID" from dual;

end if;

 

end;

 

 

 

 

 

 

 

Trigger for Profit-loss table:

 

Find Your Next Great Read

Describe what you're looking for in as much detail as you'd like.
Our AI reads your request and finds the best matching books for you.

Showing results for ""

Popular searches:

Romance Mystery & Thriller Self-Help Sci-Fi Business