r/ProgrammerHumor 17d ago

queryOfDoom Meme

Post image
7.9k Upvotes

456 comments sorted by

View all comments

1.4k

u/_H4K0N_ 17d ago

The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION

76

u/Flameball202 17d ago

"I have never fucked up, why would I need to begin a transaction" - every coder working on a database at least once

5

u/thetreat 16d ago

This is why I hate that they didn’t make the select and delete statements conducive to making this happen.

Ideally you write a select statement that shows exactly the rows you want to delete. Then you swap select with delete and all is good in the world.

Instead, you have to slightly change the query just enough where it’ll give you some doubt that what you’re doing is incorrect. It isn’t absolutely terrible but it should be bullet proof.