How to store decimal in MySQL? -
i've tried using decimal (2,2) won't let me use this.
i want store number, example 7.50 or 10.50. need keep both numbers after decimal though when refresh database resets values 0.99. suggestions?
the first digit of decimal
declaration total digits. want use decimal (4, 2)
. allows 2 digits before decimal , 2 after.
documentation: https://dev.mysql.com/doc/refman/5.7/en/precision-math-decimal-characteristics.html
Comments
Post a Comment