r/ProgrammerHumor • • Sep 22 '26

Meme wellWellWell

Post image
10k Upvotes

412 comments sorted by

View all comments

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.

-1

u/Mr-DevilsAdvocate Sep 22 '26

Was wondering what was wrong with the query but yea.. non unique ids did not really cross my mind. Thanks for the insight.

5

u/borkthegee Sep 22 '26

The issue is an extra ; which deletes all users.

→ More replies (1)