Can we use commit or rollback in trigger? If yes, then how. Please explain with a suitable example?
Answer Posted / nitinsharma06
Yes we can, the trigger will get compile also if you use commit inside it and that is without using PRAGMA AUTONOUMS TRANSACTION, but when you execute the DML operation it fails to execute.
So in compilation you won't get any error and while execute trigger will throw error.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is oracel sql developer written in java?
Can variables be used in sql statements?
What is a constraint?
What is the difference between count 1 and count (*) in a sql query?
How do you optimize a stored procedure query?
Explain the the delete statements in sql?
Does sql*plus have a pl/sql engine?
Does truncate release storage space?
Explain ttitle and btitle.
What is a pragma statement?
How do you modify a column in sql?
How do sql databases work?
What does (*) mean in sql?
Differentiate pl/sql and sql?
What is the example of procedure?