IF i write before / after insert / update trigger and i do
rollback what will happen?

Answers were Sorted based on User's Feedback



IF i write before / after insert / update trigger and i do rollback what will happen?..

Answer / debasis mohanty

A trigger May Not issue A TCL statement like COMMIT,ROLLBACK,SAVEPOINT.
So U Cant Write A TCL Command Inside A trigger.

Is This Answer Correct ?    10 Yes 3 No

IF i write before / after insert / update trigger and i do rollback what will happen?..

Answer / ankit sinha

But if put a autonomous transaction with a rollback i think
we can do it ..

Is This Answer Correct ?    7 Yes 1 No

IF i write before / after insert / update trigger and i do rollback what will happen?..

Answer / revathi

yes

Is This Answer Correct ?    3 Yes 1 No

IF i write before / after insert / update trigger and i do rollback what will happen?..

Answer / vivek

The data whatever inserted/updated will be rollback once issue rollback

Is This Answer Correct ?    0 Yes 0 No

IF i write before / after insert / update trigger and i do rollback what will happen?..

Answer / abhijit

we cant use tcl commands in trigger,,,
if we call procedure in trigger then we can use pragma autonomous transaction for tcl

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SQL PLSQL Interview Questions

What is the Subquery?

4 Answers  


What are the syntax and use of the coalesce function?

0 Answers  


How many aggregate functions are available there in sql?

0 Answers  


How can you get sql*loader to commit only at the end of the load file? : aql loader

0 Answers  


discuss about myisam index statistics collection. : Sql dba

0 Answers  






How do I save a sql query?

0 Answers  


How to get unique records from a table?

0 Answers  


How do I remove sql developer from windows 10?

0 Answers  


What is count * in sql?

0 Answers  


What are types of indexes in sql?

0 Answers  


Can we use commit inside a trigger?

0 Answers  


wht is the difference between truncat,drop in sqlserver wht is the difference between function and stored procedure

3 Answers   Apollo,


Categories