XKCD SQL injection - please explain

Posted by Blankman on Stack Overflow See other posts from Stack Overflow or by Blankman
Published on 2008-12-01T21:50:10Z Indexed on 2010/04/12 8:23 UTC
Read the original article Hit count: 308

Just looking at:

What does this SQL do:

Robert'); DROP
TABLE STUDENTS; --

I know both ' and -- are for comments, but doesn't the word DROP get commented as well since it is part of the same line?

© Stack Overflow or respective owner

Related posts about sql-injection

Related posts about security