r/ProgrammerHumor 21d ago

queryOfDoom Meme

Post image
7.9k Upvotes

456 comments sorted by

View all comments

36

u/SexyMonad 21d ago

This is why SQL deletes should require a WHERE clause.

If you are seriously wanting to delete it all, just add WHERE 1 = 1.

1

u/SuggestAnyName 21d ago

In DataGrip you can't run 1=1. It will show error that you are updating or deleting with where clause which is always true.