This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10675|Reply: 0

[Communication] Decimal type explained in MySQL database

[Copy link]
Posted on 8/3/2018 10:26:20 AM | | |
What do m and n mean in the MySql data type decimal(m,n)?

n: is the number of decimal places after the decimal point.
m:is the total length of the integer part plus the decimal part, if n = 2, m = 5, then the inserted value, the integer part cannot exceed 3 digits, otherwise it will report an error that is out of range.That is, the inserted digital integer part cannot exceed N-M bits, otherwise it cannot be successfully inserted.








Previous:Product managers and devs are fighting!
Next:Java Development Tools Comparison: Eclipse and IntelliJ IDEA
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com