C语言 c++ php mysql nginx linux lnmp lamp lanmp memcache redis 面试 笔记 ppt 设计模式 问题 远程连接

mysql 异步执行 query //@todo

 

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

 

posted on 2015-09-15 16:54  思齐_  阅读(834)  评论(0编辑  收藏  举报