Ver >= 4.0-rc1 , 需在connect时加入fetch_mode => true选项
4.0-rc1
connect
fetch_mode => true
从结果集中获取下一行
function Coroutine\MySQL->fetch() : ?array
$stmt = $db->prepare('SELECT * FROM ckl LIMIT 1'); $stmt->execute(); while($ret = $stmt->fetch()) { var_dump($ret); }