Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
yii
redis
ActiveQuery
sum
yii\redis\ActiveQuery::sum PHP Method
ActiveQuery Class Documentation
Datei anzeigen
Open project: yiisoft/yii2-redis
sum()
public
method
Returns the number of records.
public
sum
(
string
$column
,
Connection
$db
= null ) :
integer
$column
string
the column to sum up
$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 sum($column, $db = null) { return $this->executeScript($db, 'Sum', $column); }
ActiveQuery
__construct
all
average
column
count
executeScript
exists
findByPk
init
max
min
one
scalar
sum