mysql 创建表字段Double类型长度

mysql> create table MyClass(
    > id int(4) not null primary key auto_increment,
    > name char(20) not null,
    > sex int(4) not null default '0',

    > degree double(16,2));


double(16,2) 16位长度,小数点后2位。

猜你喜欢

转载自blog.csdn.net/qq_28817739/article/details/80902879