yii\db\Command::queryAll PHP 메소드

queryAll() 공개 메소드

Executes the SQL statement and returns ALL rows at once.
public queryAll ( integer $fetchMode = null ) : array
$fetchMode integer the result fetch mode. Please refer to [PHP manual](http://www.php.net/manual/en/function.PDOStatement-setFetchMode.php) for valid fetch modes. If this parameter is null, the value set in [[fetchMode]] will be used.
리턴 array all rows of the query result. Each array element is an array representing a row of data. An empty array is returned if the query results in nothing.
    public function queryAll($fetchMode = null)
    {
        return $this->queryInternal('fetchAll', $fetchMode);
    }