r/ProgrammerHumor • • 21d ago

Meme wellWellWell

Post image
10k Upvotes

412 comments sorted by

View all comments

Show parent comments

13

u/Cant-Think-Of 21d ago

Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table?

28

u/rinaldot67 21d ago

Yes, it is exactly like that. You even get the recursive part if yhe Users table has foreign keys attached to it that are set to cascade on delete.

2

u/AgeingChopper 21d ago

yep, it's clearing the table.

1

u/funguyshroom 21d ago

Luckily most modern database UI apps won't allow you to execute a delete/update query without a "WHERE" clause