S
S
Sergey Beloventsev2017-10-01 14:22:05
MySQL
Sergey Beloventsev, 2017-10-01 14:22:05

How to double the values ​​of all cells?

The next question is there is a customer table that has a bonus field, I need to double the value of each cell, can you tell me how this can be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Petrov, 2017-10-01
@Recosh

UPDATE customer SET bonus=bonus/2
Should work
PS do not forget about backups: D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question