How to use MySQL fixed-point number
This article mainly shows you "how to use MySQL fixed-point numbers", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use MySQL fixed-point numbers" this article.
MySQL fixed point number
Principle:
Separate the integer part from the decimal part
Syntax:
Decimal (MMAE D)
Note:
Decimal is variable in length, roughly 4 bytes for every 9 digits, integers and decimals are calculated separately, M max is 65 Magi D max is 30, default is (10p2)
Both fixed-point and floating-point numbers support unsigned, showing a width of 0 fill.
The above is all the contents of the article "how to use MySQL fixed-point numbers". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!