Toggle navigation
Hot Examples
IT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Cerca
Home
yii
db
Command
queryColumn
yii\db\Command::queryColumn PHP Method
Command Class Documentation
Mostra file
Open project: yiisoft/yii2
queryColumn()
public
method
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
queryColumn
( ) :
array
return
array
the first column of the query result. Empty array is returned if the query results in nothing.
public function queryColumn() { return $this->queryInternal('fetchAll', \PDO::FETCH_COLUMN); }
Command
addColumn
addCommentOnColumn
addCommentOnTable
addForeignKey
addPrimaryKey
alterColumn
batchInsert
bindParam
bindPendingParams
bindValue
bindValues
cache
cancel
checkIntegrity
createIndex
createTable
delete
dropColumn
dropCommentFromColumn
dropCommentFromTable
dropForeignKey
dropIndex
dropPrimaryKey
dropTable
execute
getRawSql
getSql
insert
noCache
prepare
query
queryAll
queryColumn
queryInternal
queryOne
queryScalar
refreshTableSchema
renameColumn
renameTable
requireTableSchemaRefresh
resetSequence
setSql
truncateTable
update