db\Command queryAll()

queryAll() public method

Executes the SQL statement and returns ALL rows at once.

public array queryAll ( $fetchMode = null )
$fetchMode integer

The result fetch mode. Please refer to PHP manual for valid fetch modes. If this parameter is null, the value set in $fetchMode will be used.

return 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.

throws yii\db\Exception

execution failed

doc_Yii
2016-10-30 16:57:29
Comments
Leave a Comment

Please login to continue.