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

后端 未结 5 1461
执笔经年
执笔经年 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:17

    Use a procedure.

    Convert the statement to static SQL, placing the value of parameter into a local variable.

    This does help !

提交回复
热议问题