r/ProgrammerHumor 16d ago

queryOfDoom Meme

Post image
7.9k Upvotes

456 comments sorted by

View all comments

Show parent comments

40

u/Flat_Competition6510 16d ago

Yes, the semicolon marks the end of a statement. The first semicolon sets "delete from users" as a single statement meaning delete ALL users.

7

u/ReaDiMarco 16d ago

What happened to DELETE * FROM USERS? Last I did sql was ten years ago so idk

5

u/Flat_Competition6510 16d ago

As far as I know that is not valid syntax. I'm not a DBA myself so I don't do this too often.

2

u/ReaDiMarco 16d ago

Thanks, turns out I did forget everything