query() public method
Executes the SQL statement and returns query result.
This method is for executing a SQL query that returns result set, such as SELECT
.
public yii\db\DataReader query ( ) | ||
---|---|---|
return | yii\db\DataReader |
The reader object for fetching the query result |
throws | yii\db\Exception |
execution failed |
Please login to continue.