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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -