Editorial / Best Answer
Answered by:
answertoyourquery
Yes, we can use the TCL commands(commit/rollback) in the exception block of a stored procedure/function. The code in this part of the program gets executed like those in the body without any restriction. You can include any business functionality whenever a condition in main block(body of a proc/func) fails and requires a follow-thru process to terminate the execution gracefully!
Can we use commit or rollback command in the exception part of PL/SQL block?
Editorial / Best Answer
Answered by: answertoyourquery
Yes, we can use the TCL commands(commit/rollback) in the exception block of a stored procedure/function. The code in this part of the program gets executed like those in the body without any restriction. You can include any business functionality whenever a condition in main block(body of a proc/func) fails and requires a follow-thru process to terminate the execution gracefully!
Related Answered Questions
Related Open Questions