mysql存储过程中传decimal值会自动四舍五入,没有小数 通过 call proc(0.2,0.5); 查看结果数据库竟然是0 和 1 原因:proc的参数没有设置好 参数:原本是 in a decimal,in b decimal 应该改为: ...