Breaks out of the intended data field in a SQL query.
Comments out the rest of the original query so it doesn't cause a syntax error [1, 5]. How to Prevent It: Breaks out of the intended data field in a SQL query
Appends a new set of results to the original query [2, 5]. Breaks out of the intended data field in a SQL query
The best way to stop these attacks is to never "glue" user input directly into your database queries. Instead, use: Breaks out of the intended data field in a SQL query
Matches the number of columns in the original table. Attackers use NULL to figure out how many columns they need to match without causing a data type error [2, 3].