Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
yii
redis
ActiveQuery
sum
yii\redis\ActiveQuery::sum PHP Метод
Документация по классу ActiveQuery
Показать файл
Открыть проект
sum()
публичный
Метод
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.
Результат
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