db\Command queryColumn()

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

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

Please login to continue.