r/ProgrammerHumor • • Oct 14 '25

Advanced neverForget

/img/fmfo1e41g0vf1.png
14k Upvotes

615 comments sorted by

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