Definitely, SQL injection is the most serious security issue for web applications, but I think, many blogs and tutorials are misleading by exaggerating the unrealistic examples (or maybe I'm wrong). The common example is when entering value of
; DELETE FROM ...
This is merely theory based on the basics of SQL. When in real world using PHP for example, mysql_query() or mysqli->query() will only execute the first SQL query. Adding anything after ; will result in syntax error.
Is it possible to make a WRITE action by SQL injection on a SELECT query in PHP?
UPDATE: My point is to clarify if it is possible to make a second query in PHP. Not discussing the necessity of preventing SQL injection or how to do this. The ultimate solution is obviously prepared statements.