修改表结构时报错了: Incorrect DECIMAL value: '0' for column '' at row -1 原来字段类型为varchar, 且该字段有值为''数据存在。 解决: update table set col=null where col=''; 然后再修改结构。