gpt4 book ai didi

PHP MySQLi 多查询准备语句

转载 作者:可可西里 更新时间:2023-11-01 06:45:19 25 4
gpt4 key购买 nike

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

最佳答案

没有。

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

mysql::prepare只能准备一条语句:

The query must consist of a single SQL statement.

关于PHP MySQLi 多查询准备语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4881381/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com