我想知道是否可以为MySQLi multi_query准备多个语句?
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.