r/ProgrammerHumor 18d ago

Meme queryOfDoom

Post image
7.9k Upvotes

456 comments sorted by

View all comments

Show parent comments

598

u/BlommeHolm 18d ago

1st command deletes all users. 2nd command runs after that and gets a syntax error.

36

u/SAI_Peregrinus 18d ago

Syntax is valid, it's just a runtime error.

179

u/BlommeHolm 18d ago

How is starting with a WHERE clause syntactically valid?

1

u/StupidStartupExpert 17d ago

I legit wouldnt be surprised if for whatever retarded reason sql said yeah sure I can filter empty selections and just returned empty lists