日期:2014-05-16  浏览次数:20911 次

DOUBLE(M, D)的M是什么意思,是不是和DECIMAL(p,s)的p差不多
本人是MySQL初学者,现在遇到一个问题
double(M,D)里的M是什么啊,书上说是最大显示宽度,没明白啥意思。
double(3,3)只能插入0.7,0.6,0.345之类的,不能插入大于1的数。
这个M是不是和DECIMAL(p, s)的p意思差不多啊?
我的MySQL是5.0.18
谢谢

------解决方案--------------------
M是小数总位数,D是小数点后面的位数
------解决方案--------------------
M is the total number of digits and D is the number of digits following the decimal point.