SQL injection: isn't replace(“'”, “''”) good enough?

后端 未结 5 1483
执笔经年
执笔经年 2020-12-03 05:38

While I can certainly see the advantages of using parameters for SQL queries, especially when dealing with datetimes and things like that, I\'m still unsure about parameters

5条回答
  •  悲&欢浪女
    2020-12-03 06:33

    I think you're getting an answer on the way as to why it isn't enough, but you also run into the problem of somebody forgetting to do a replace on a string. If you 'always' use parameters, this is less of an issue.

提交回复
热议问题