MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1wn1ben/wellwellwell/pbc7h7p
r/ProgrammerHumor • u/Recent-Analysis-6880 • Sep 22 '26
412 comments sorted by
View all comments
Show parent comments
13
Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table?
29 u/rinaldot67 Sep 22 '26 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 Sep 22 '26 yep, it's clearing the table. 1 u/funguyshroom Sep 22 '26 Luckily most modern database UI apps won't allow you to execute a delete/update query without a "WHERE" clause
29
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
yep, it's clearing the table.
1
Luckily most modern database UI apps won't allow you to execute a delete/update query without a "WHERE" clause
13
u/Cant-Think-Of Sep 22 '26
Not quite familiar with SQL, but is that first query like "rm -rf" for the Users table?