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

.htaccess - First slash is removed after domain when entering a webpage in the browser -

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -