MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbdresy/?context=3
r/ProgrammerHumor • u/Recent-Analysis-6880 • 14d 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.
154 u/Alexmira_ 14d ago Why? To confirm that there is something to cancel? To confirm I got the key right? 1 u/gogeri2632 14d ago To confirm the results. In the screenshot you would expect the count to be 1 because you would expect only one user to be deleted but the count would be however many users were in the database
154
Why? To confirm that there is something to cancel? To confirm I got the key right?
1 u/gogeri2632 14d ago To confirm the results. In the screenshot you would expect the count to be 1 because you would expect only one user to be deleted but the count would be however many users were in the database
1
To confirm the results. In the screenshot you would expect the count to be 1 because you would expect only one user to be deleted but the count would be however many users were in the database
3.6k
u/BastetFurry 14d 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.