197-mysql:Incorrect DECIMAL value:0 for column ‘’at row -1

hoohack

关注

阅读 133

2023-03-23

修改表结构时报错了:

Incorrect DECIMAL value: '0' for column '' at row -1

原来字段类型为varchar, 且该字段有值为''数据存在。

解决:

update table set col=null where col='';

然后再修改结构。

精彩评论(0)

0 0 举报