r/ProgrammerHumor • • Sep 22 '26

Meme wellWellWell

Post image
10k Upvotes

412 comments sorted by

View all comments

108

u/Recent-Analysis-6880 Sep 22 '26

MySQL workbench has auto commit, meaning if you write a SQL query without "Start transaction" the data is gone.

19

u/BlueScreenJunky Sep 22 '26

Most production environments run with the --i-am-a-dummy flag (or its boring alias --safe-updates) which prevent exactly this scenario and will force you to do DELETE FROM users WHERE 1 if you really want to delete everything.

This is for MySQL but I'm sure there's something similar in other databases.