码迷,mamicode.com
首页 > 数据库 > 详细

mysql 异步执行 query //@todo

时间:2015-09-15 18:21:12      阅读:189      评论:0      收藏:0      [点我收藏+]

标签:

 

http://stackoverflow.com/questions/27240421/php-asynchronous-mysql-query

http://php.net/manual/en/mysqlinfo.library.choosing.php

 

$mysqli = new mysqli("localhost", "root", "", "test");

// ee($mysqli);

 $a = $mysqli->query("select sleep (2)", MYSQLI_ASYNC);


echo ‘run other stuff ‘."\n";

$result = $mysqli->reap_async_query();
$resultArray = $result->fetch_assoc();

ee($resultArray);

 

mysql 异步执行 query //@todo

标签:

原文地址:http://www.cnblogs.com/siqi/p/4810747.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!