How many types of database triggers can be specified on a
table ? What are they ?
Answers were Sorted based on User's Feedback
Answer / nilesh
There are 2 types of triggers as per the execution goes
they are ROW LEVEL and STATEMENT LEVEL TRIGGERS
Then as per action triggers can be executed for three
actions as INSERT, UPDATE and DELETE
and trigger can also be executed before the action or after
the action . So with this we can have 12 diffrent triggers
they are: (6 Row level, 6 statement level)
ROW LEVEL
AFTER INSERT , BEFORE INSERT (2 Nos.)
AFTER UPDATE , BEFORE UPDATE (2 Nos.)
AFTER DELETE , BEFORE DELETE (2 Nos.)
STATEMENT LEVEL
AFTER INSERT , BEFORE INSERT (2 Nos.)
AFTER UPDATE , BEFORE UPDATE (2 Nos.)
AFTER DELETE , BEFORE DELETE (2 Nos.)
| Is This Answer Correct ? | 17 Yes | 4 No |
Answer / biswajit biswal
We can specified 28 Database triggers on a single table.
Before Row level insert
After Statement level update
Delete
insert or update
update or delete
insert or delete
insert or update or delete
2*2*7=28
| Is This Answer Correct ? | 1 Yes | 6 No |
How do I sort a table in sql?
Explain commit, rollback and savepoint.
What does inner join mean?
What is output spooling in sql*plus?
How do I run a script in sql developer?
What is data abstraction in sql?
Delete duplicate records in the emp table.
What is hibernate and its relation to sql?
Can we use the cursor's to create the collection in PL/SQL?
I am creating an index on Emp table Empno column,if u using this indexed column in ur SELECT stmt. where clause,then how do u know that yr index will be working or nor? Thanks Advance...
What is an index and types of indexes. How many number of indexes can be used per table ?
12 Answers Accenture, BirlaSoft, Cognizant, CTS, Symphony,
What is pl sql architecture?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)