N
N
Nikolay Kaspor2017-10-03 16:36:32
MySQL
Nikolay Kaspor, 2017-10-03 16:36:32

How to calculate the sum of numbers in a column in Yii2?

What command can be used to calculate the sum of numbers from a database column in Yii2?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profaller, 2017-12-15
@profaller

SomeModel::find()->sum('col_name');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question