PHP MySQLi multi_query准备语句 [英] PHP MySQLi multi_query prepared statement
本文介绍了PHP MySQLi multi_query准备语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以为MySQLi multi_query准备多个语句?
I wanted to know if it is possible to prepare multiple statements for MySQLi multi_query?
推荐答案
否.
mysqli::multi_query
将查询字符串作为其参数,而不是准备好的陈述.
mysqli::multi_query
takes a query string as its argument, not a prepared statement.
mysql::prepare
只能准备一条语句:>
查询必须包含一个SQL语句.
The query must consist of a single SQL statement.
这篇关于PHP MySQLi multi_query准备语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文