What is a sql injection ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is a sql injection ??

SQL injection is somehow deleted with Web security ..

22nd Jan 2017, 8:18 PM
vivek pratap singh
vivek pratap singh - avatar
1 Answer
+ 2
SQL injection is the result of someone providing extra code in a form input on a site or program. For example, you have a input box on a Web page that takes in a user id. You pass that value to an SQL query like "SELECT * FROM userposts WHERE userId=<inputVal>". If the user puts '1; DELETE * FROM userposts' as their input your SQL query will execute both the intended and the unintended operations. Web security involves a lot of things but one of them is input sanitization.
22nd Jan 2017, 8:35 PM
Kevin Gilkey-Graham
Kevin Gilkey-Graham - avatar