Ver >= 4.0-rc1 , 需在connect时加入fetch_mode => true选项
4.0-rc1
connect
fetch_mode => true
返回一个包含结果集中所有行的数组
function Coroutine\MySQL->fetchAll() : ?array
$stmt = $db->prepare('SELECT * FROM ckl LIMIT 1'); $stmt->execute(); $stmt->fetchAll();