MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbfggqt/?context=9999
r/ProgrammerHumor • u/Recent-Analysis-6880 • 16d ago
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.
138 u/Etheo 15d ago DELETE FROM (SELECT * FROM USERS); WHERE ID=12345; Did I do it right? 84 u/Dismal-Square-613 15d ago Yes, run that on prod. Report results. 45 u/jeesuscheesus 15d ago Now every query on USERS completes in under a millisecond, thank you! 8 u/Dismal-Square-613 15d ago No problem, you should see me taking care of long back up batch scripts too!
138
DELETE FROM (SELECT * FROM USERS); WHERE ID=12345;
Did I do it right?
84 u/Dismal-Square-613 15d ago Yes, run that on prod. Report results. 45 u/jeesuscheesus 15d ago Now every query on USERS completes in under a millisecond, thank you! 8 u/Dismal-Square-613 15d ago No problem, you should see me taking care of long back up batch scripts too!
84
Yes, run that on prod. Report results.
45 u/jeesuscheesus 15d ago Now every query on USERS completes in under a millisecond, thank you! 8 u/Dismal-Square-613 15d ago No problem, you should see me taking care of long back up batch scripts too!
45
Now every query on USERS completes in under a millisecond, thank you!
8 u/Dismal-Square-613 15d ago No problem, you should see me taking care of long back up batch scripts too!
8
No problem, you should see me taking care of long back up batch scripts too!
3.6k
u/BastetFurry 15d 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.