Coroutine\MySQL\Statement->fetchAll
最后更新于:2022-04-02 06:29:05
# Coroutine\\MySQL\\Statement->fetchAll
[TOC]
> Ver >=`4.0-rc1`, 需在`connect`时加入`fetch_mode => true`选项
返回一个包含结果集中所有行的数组
~~~
function Coroutine\MySQL->fetchAll() : ?array
~~~
### 示例
~~~
$stmt = $db->prepare('SELECT * FROM ckl LIMIT 1');
$stmt->execute();
$stmt->fetchAll();
~~~
';