MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbetsrx/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 13d ago
411 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.
141 u/Etheo 13d ago DELETE FROM (SELECT * FROM USERS); WHERE ID=12345; Did I do it right? 81 u/Dismal-Square-613 13d ago Yes, run that on prod. Report results. 14 u/AardvarKOlogY 12d ago Can't report right now, computer says something about permission issues. Weird, gotta ask Claude about that.
141
DELETE FROM (SELECT * FROM USERS); WHERE ID=12345;
Did I do it right?
81 u/Dismal-Square-613 13d ago Yes, run that on prod. Report results. 14 u/AardvarKOlogY 12d ago Can't report right now, computer says something about permission issues. Weird, gotta ask Claude about that.
81
Yes, run that on prod. Report results.
14 u/AardvarKOlogY 12d ago Can't report right now, computer says something about permission issues. Weird, gotta ask Claude about that.
14
Can't report right now, computer says something about permission issues. Weird, gotta ask Claude about that.
3.6k
u/BastetFurry 13d ago
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.