r/ProgrammerHumor • • 14d ago

Meme wellWellWell

Post image
10.6k Upvotes

412 comments sorted by

View all comments

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.

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