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

Popular posts from this blog

c# - Farseer ContactListener is not working -

Automatically create pages in phpfox -

osx - Copy lines to os x clipboard from vim on remote console -