Can parameterized statement stop all SQL injection?

后端 未结 12 1904
轻奢々
轻奢々 2020-11-30 20:31

If yes, why are there still so many successful SQL injections? Just because some developers are too dumb to use parameterized statements?

12条回答
  •  南笙
    南笙 (楼主)
    2020-11-30 21:18

    I wouldn't say "dumb".

    I think the tutorials are the problem. Most SQL tutorials, books, whatever explain SQL with inlined values, not mentioning bind parameters at all. People learning from these tutorials don't have a chance to learn it right.

提交回复
热议问题