PHP MySQLi multi_query preparestatement

时间:2021-02-26 00:11:11

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

我想知道是否有可能为MySQLi multi_query准备多个语句?

1 个解决方案

#1


7  

No.

不。

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

multi_query以查询字符串作为参数,而不是准备好的语句。

mysql::prepare can only prepare a single statement:

:准备只能准备一个语句:

The query must consist of a single SQL statement.

查询必须包含一个SQL语句。

#1


7  

No.

不。

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

multi_query以查询字符串作为参数,而不是准备好的语句。

mysql::prepare can only prepare a single statement:

:准备只能准备一个语句:

The query must consist of a single SQL statement.

查询必须包含一个SQL语句。