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

Answer Posted / aravinda

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 ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how many sql ddl commands are supported by 'mysql'? : Sql dba

702


Can procedure in package be overloaded?

837


What is dba in sql? : SQL DBA

747


Differentiate between pl/sql and sql?

806


How to avoid duplicate records in a query?

749






What is the difference between union and union all command?

741


How can we debug in PL/SQL?

855


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

835


what is data manipulation language? : Sql dba

702


what are properties of a transaction? : Sql dba

760


Is natural join and inner join same?

654


What is snowflake sql?

800


how to convert dates to character strings? : Sql dba

733


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1079


Can you selectively load only those records that you need? : aql loader

773