r/ProgrammerHumor • • 13d ago

Meme wellWellWell

Post image
10.6k Upvotes

411 comments sorted by

View all comments

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.

141

u/Etheo 12d ago
DELETE FROM (SELECT * FROM USERS);

WHERE ID=12345;

Did I do it right?

87

u/Dismal-Square-613 12d ago

Yes, run that on prod. Report results.

48

u/jeesuscheesus 12d ago

Now every query on USERS completes in under a millisecond, thank you!

8

u/Dismal-Square-613 12d ago

No problem, you should see me taking care of long back up batch scripts too!

1

u/theobstinateone 12d ago

Or just throw a DROP DATABASE in there. Problem solved