Is it possible to use Transaction control Statements such a
ROLLBACK or COMMIT in Database Trigger ? Why ?

Answer Posted / nishi

We can't write COMMIT or ROLLBACK in triggers, because the triggering event may commit or may not. trigger commit or rollback is based on triggering event.

even we can't call a subprogram in a trigger which is having commit or rollback.

but we can achieve through pragma autonomous transaction.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a record in a database ? : Sql dba

764


What does a pl/sql package consist of?

721


how to get a list of columns in an existing table? : Sql dba

711


What is lexical units in pl sql?

761


What is the difference between a database and a relational database?

768






Why truncate is faster than delete?

793


The select into statement is most often used to create backup copies of tables or for archiving records?

771


What is the purpose of cursors in pl/sql?

798


What is sql prepared statement?

738


What are the types of subqueries?

769


What is mutating error in pl sql?

750


How to install oracle sql developer?

773


Can we debug stored procedure?

721


What is rank dense_rank and partition in sql?

753


What is trigger explain it?

740