IF i write before / after insert / update trigger and i do
rollback what will happen?
Answers were Sorted based on User's Feedback
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 |
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 |
Answer / vivek
The data whatever inserted/updated will be rollback once issue rollback
| Is This Answer Correct ? | 0 Yes | 0 No |
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 |
There are 5 records in a table and we have implemented two triggers that are :pre_query and post_query how many times these triggers will fire.
In packages the source code is compiled into p code ? how do we describe the p code
What is an implicit commit?
What does subquery mean in sql?
Explain the usage of WHERE CURRENT OF clause in cursors ?
Is coalesce faster than isnull?
define a variable representing the expression used to calculate on emps total annual remuneration.use the variable in a statement which finds all emps who can earn 30000 a year or more.
How do you update sql?
What does 0 mean in sql?
How do you exit in sql?
Can we use more than one null value for unique key?
31 Answers A1 Technology, Wipro,
write a query that returns first characters of each word in Oracel/Sql pl sql
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)