Are there any differences between SQL Server and MySQL when it comes to preventing SQL injection?

后端 未结 9 2456
北荒
北荒 2021-02-13 17:21

I am used to developing in PHP/MySQL and have no experience developing with SQL Server. I\'ve skimmed over the PHP MSSQL documentation and it looks similar to MySQLi in some of

9条回答
  •  生来不讨喜
    2021-02-13 17:31

    No, MSSQL provides no such function, and in Mysqli you shouldn't be using mysql_real_escape_string either. In both cases you should be using Prepared Statements or Stored Procedeures. I believe the PHP documentation provides ample explanation on how to use the MSSQL apis.

提交回复
热议问题