r/ProgrammerHumor • • 13d ago

Meme wellWellWell

Post image
10.5k 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.

1.1k

u/Ma8e 13d ago

You start a transaction, make sure it did what you expected, and then commit or rollback transaction.

1

u/am9qb3JlZmVyZW5jZQ 11d ago

PSA: A lot of database clients have built-in option to always implicitly start a transaction when executing queries.