V
V
Valery Khizhevsky2018-03-20 15:04:52
Laravel
Valery Khizhevsky, 2018-03-20 15:04:52

How to sum a value to a SQL cell?

Good day everyone.
Now the question arose, how can you add another numeric value to an already existing numeric value in a MySQL cell without pulling the old value from the database, adding and returning the new value back?
Is there such a possibility in Laravel?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Varlamov, 2018-03-20
@Roshette

SELECT cell+1 FROM table while reading
UPDATE table SET cell=cell+1to update inplace

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question