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 |
I have one Excel file with 1,50,000 Records. Now I need to load that whole file into Oracle Database with same columns in Excel sheet . I need PLSQL Procedure or used by SQL PLUS
What are % TYPE and % ROWTYPE ? What are the advantages of using these over datatypes?
What are the dml statements?
What is the need of a partition key?
What type of database is sql?
What is the difference between partitioning and sharding?
With out using count() function. How to the find total number of rows in a table?
Where the integrity constrints are stored in Data Dictionary?
What is difference between db2 and sql?
Which column in the user.triggers data dictionary view shows that the trigger is a pl/sql trigger?
is it possible to pass an object or table to a procedure as an argument?
Which nosql database is best?
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)