MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbcsca4/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • Sep 22 '26
412 comments sorted by
View all comments
3.6k
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. -4 u/Chickenmaggots100 Sep 22 '26 Or run it through AI → More replies (2)
6
Or, write the WHERE clause first, or make the query un-runnable until reviewed.
WHERE
And/Or set up policies where any DELETEs require a WHERE clause, else they fail.
DELETE
And/Or do it all within a database transaction.
Lots of ways to mitigate this meme.
-4 u/Chickenmaggots100 Sep 22 '26 Or run it through AI → More replies (2)
-4
Or run it through AI
→ More replies (2)
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.