Preventing SQL Injection in C

后端 未结 1 1662
执念已碎
执念已碎 2020-12-11 07:26

I am writing a C application that takes some user input and does a few database queries. I am well aware of the risks here of SQL injection and wish to prevent it.

I

相关标签:
1条回答
  • 2020-12-11 08:15

    I believe that you want to use prepared statements and parameter binding. Do not directly interpolate user data into your queries. See the MySQL manual for info on this.

    0 讨论(0)
提交回复
热议问题