Gives me the data before, the data after (so I can see the changes I've made), and I'll also check the changed rows in case I've been dumb and forgot to account for triggers, and make sure those are all correct.
If I'm happy that the result has done what I want, commit. If I'm unhappy, rollback and rework my statements
View all comments
Show parent comment
19
u/Brendoshi Oct 14 '25
I do:
Select
Transaction
delete
--rollback
--commit
select
Gives me the data before, the data after (so I can see the changes I've made), and I'll also check the changed rows in case I've been dumb and forgot to account for triggers, and make sure those are all correct.
If I'm happy that the result has done what I want, commit. If I'm unhappy, rollback and rework my statements