Automating commit based on number of rows updated
Hi
Is there any way I can, within a SQL script, rollback or commit a transaction depending on how many rows were updated?
We often get requests to run data fixes into DBs and then need to manually commit, but only if the number of rows is whatever the developer has specified.
1. update tab1
2. if number of rows updated = 50, commit
3. If not, roll back
Thanks,
Andreas