PHP MySQLi multi_query prepared statement

百般思念 提交于 2019-12-01 16:25:24

问题


I wanted to know if it is possible to prepare multiple statements for MySQLi multi_query?


回答1:


No.

mysqli::multi_query takes a query string as its argument, not a prepared statement.

mysql::prepare can only prepare a single statement:

The query must consist of a single SQL statement.



来源:https://stackoverflow.com/questions/4881381/php-mysqli-multi-query-prepared-statement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!