mysql向数据库插入小数,变成了整数,解决方案

mysql向数据库插入小数,变成了整数, 导致这个问题的原因是: 在设计表的时候,得定义表字段小数点的位数;  示例sql语句: mysql> create table MyClass( > id int(4) not null primary key auto_increment, > name char(20) not null, > sex int(4) not nu
相关文章
相关标签/搜索