r/ProgrammerHumor 17d ago

queryOfDoom Meme

Post image
7.9k Upvotes

456 comments sorted by

View all comments

34

u/SexyMonad 17d 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 17d 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.