queryColumn() public method
Executes the SQL statement and returns the first column of the result.
This method is best used when only the first column of result (i.e. the first element in each row) is needed for a query.
public array queryColumn ( ) | ||
---|---|---|
return | array |
The first column of the query result. Empty array is returned if the query results in nothing. |
throws | yii\db\Exception |
execution failed |
Please login to continue.