您的位置:首页 > 产品设计 > UI/UE

mysql 异步执行 query //@todo

2015-09-15 16:54 357 查看
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_unbuffered_query()

mysql_num_rows() 和 mysql_data_seek()

mysqli_data_seek

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: