Найти и сохранить процент двух столбцов в mongodbPhp

Кемеровские программисты php общаются здесь
Anonymous
Найти и сохранить процент двух столбцов в mongodb

Сообщение Anonymous »


I have $a and $b colons in mongodb. I want to do the following in $c column with PHP.

$number = $a/$b * (100-100);

That is, I want to find the percentage change and save it in column $c.

can you help me?

{ "a": 0.16, "b": 0.15, "c: ? },


Источник: https://stackoverflow.com/questions/780 ... in-mongodb

Вернуться в «Php»