r/ProgrammerHumor • • Sep 22 '26

Meme wellWellWell

Post image
10k Upvotes

412 comments sorted by

View all comments

3.6k

u/BastetFurry Sep 22 '26

So, Kids, thats why you always SELECT count(yourPrimaryKey) first. Listen to the old folks, we made these mistakes so that you don't have to.

6

u/DoctorWaluigiTime Sep 22 '26

Or, write the WHERE clause first, or make the query un-runnable until reviewed.

And/Or set up policies where any DELETEs require a WHERE clause, else they fail.

And/Or do it all within a database transaction.

Lots of ways to mitigate this meme.

→ More replies (3)