db\Query column()

column() public method

Executes the query and returns the first column of the result.

public array column ( $db = null )
$db yii\db\Connection

The database connection used to generate the SQL statement. If this parameter is not given, the db application component will be used.

return array

The first column of the query result. An empty array is returned if the query results in nothing.

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

Please login to continue.