Mysql the amount field of a table, how can I modify the operation?

1 / modify the amount field after recharging, is it better to use money=money+123 directly?
2 / or find out the data first and use the php accurate calculation function bcadd () to complete the calculation and then update the data, which will be one more step than the first query.
I don"t know whether the mysql floating-point calculation is accurate

.
Apr.21,2021

what is the database field type
float/double has precision limits. Generally use integer (unit points) or decimal deposit amount

Menu