1
我跑了许多的MySQL查询在PHP用下面的代码:PHP中可以使用MySQL运行的最大查询数量是多少?
$this->conection = new mysqli($this->server, $this->user, $this->pass, $this->db);
$query = "call createNew(....)";//the triple dots represent the parameters, of course, and createNew() is a stored procedure in my database
$consult = $this->conection->query($query);
$query2 = "call loadNewID(....)";
$consult2 = $this->conection->query($query2);
$query3 = "call loadNewID(....)";//same stored procedure as the previous one, but with different parameters
$consult3 = $this->conection->query($query3);
所以问题是,咨询和consult2工作就好了,回到“1”,因为他们应该,但consult3不工作并没有任何回报。奇怪的是,如果我避免运行query2和consult2行代码,query3和consult3工作得很好。这就是为什么唯一对我有意义的结论是,你可以在一个php文件中运行查询的限制......有人可能会告诉我,如果我对这个问题是对的还是错的?或者我该如何解决我的问题,并使所有的查询工作?
不,不存在这样的限制,这些将进入队列。这可能有所帮助,http://stackoverflow.com/questions/41255750/how-does-laravel-store-and-process-the-requests –
'$ this-> conexion-> query()',不应该是'$这 - >连接 - >查询()'? – creativename
如果查询一个正在返回预期的结果做一件事是在查询3之后再次将查询2置于正常工作并看到查询2正在返回结果。如果是的话,那么query3 – Exprator