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 sql indexing?

552


Explain the insert into statements in sql?

564


What is a primary key? Explain

538


What is varchar used for?

529


Explain the rollback statement?

572






What is sql*loader and what is it used for?

579


what is the difference between clustered and non clustered index in sql? : Sql dba

547


What is case function?

596


What are string functions in sql?

674


Where can I learn sql for free?

505


How we can create a table in pl/sql block. Insert records into it? Is it possible by some procedure or function? Please give example?

591


how many columns can be used for creating index? : Sql dba

516


Is sql free?

499


Does group by remove duplicates?

545


What is a data definition language?

554