0% found this document useful (0 votes)
39 views

Trigger 3

Triggers are reusable PL/SQL programs that are automatically executed due to database events like DML or DDL operations. There are different types of triggers including DML triggers for insert, update, delete operations, DDL triggers for schema changes, and "instead of" triggers. Triggers have a name, are set on a table, and can fire before or after events at the row or statement level. They allow implementing complex business rules and automatic processes that are not possible with constraints alone.

Uploaded by

Venu D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Trigger 3

Triggers are reusable PL/SQL programs that are automatically executed due to database events like DML or DDL operations. There are different types of triggers including DML triggers for insert, update, delete operations, DDL triggers for schema changes, and "instead of" triggers. Triggers have a name, are set on a table, and can fire before or after events at the row or statement level. They allow implementing complex business rules and automatic processes that are not possible with constraints alone.

Uploaded by

Venu D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

triggers:

reusable pl/sql programe


cann't be called on its own
it is database event(dml/ddl)
table--->triggering table
use many no of triggers on a single table
no select
ad:
automatic backup
trace the unwanted deletions/updations
implement complex buisness rules,not possible
by constraints
types of triggers
dml triggers
ddl triggers
'instead of' triggers
system events
compound triggers(11g features)
components of dml triggers:
trigger name
trigger event(insert/update/delete)
trigger timing(before/after)
trigger level(row/statement)
insert before rowlevel
insert before statement
delete after rowlevel
delete before statements

create or replace trigger test_tr


after delete on emp10
declare
vt int:=0;
begin
select count(*) into vt from emp10;
end;
/

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy