Prado\Data\TDbCommand::queryColumn PHP Метод

queryColumn() публичный Метод

This is a convenient method of {@link query} when only the first column of data is needed. Note, the column returned will contain the first element in each row of result.
С версии: 3.1.2
public queryColumn ( ) : array
Результат array the first column of the query result. Empty array if no result.
    public function queryColumn()
    {
        $rows = $this->query()->readAll();
        $column = array();
        foreach ($rows as $row) {
            $column[] = current($row);
        }
        return $column;
    }