Get the Whitepaper called Intro to SQL Injection and Countermeasures.
You can download it from the following link: https://packetstormsecurity.com/files/download/112155/intro-to-sql.pdf
Source: https://packetstormsecurity.com/files/112155/Intro-To-SQL-Injection-And-Countermeasures.html