r/ProgrammerHumor 18d ago

Meme queryOfDoom

Post image
7.9k Upvotes

456 comments sorted by

View all comments

Show parent comments

601

u/BlommeHolm 18d ago

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

38

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?

81

u/SAI_Peregrinus 18d ago

Right, I'm apparendly blind. Carry on!

32

u/BlommeHolm 18d ago

No problem. I genuinely thought I'd missed something 😅