Comment Re:xkcd already has the solution (Score 1) 250
My SQL is way lacking, but judging by the syntax, the '); is obviously the end of an insert command. the drop table students is the command to delete the table named students. The following semicolon must signal the end of that command. But, what are the two hyphens and a space for?
the hyphens comment our the rest of the (original) INSERT command, so that the truncated INSERT and the DROP TABLE commands get executed instead of erroring out due to syntax.