Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
yii
db
QueryInterface
count
yii\db\QueryInterface::count PHP Method
QueryInterface Interface Documentation
Mostrar archivo
Open project: yiisoft/yii2
count()
public
method
Returns the number of records.
public
count
(
string
$q
= '*',
Connection
$db
= null ) :
integer
$q
string
the COUNT expression. Defaults to '*'.
$db
Connection
the database connection used to execute the query. If this parameter is not given, the `db` application component will be used.
return
integer
number of records.
public function count($q = '*', $db = null);
QueryInterface
addOrderBy
all
andFilterWhere
andWhere
count
emulateExecution
exists
filterWhere
indexBy
limit
offset
one
orFilterWhere
orWhere
orderBy
where