mysql 1292 - Truncated incorrect DOUBLE value: '总部营销中心'

update tab1 a left join tab2 b on a.store_id=b.store_id set  a.order_id=b.id where a.an<> 1 and a.an <> ''

insert into tab1 (id,time) select id,time from tab2 where an = 1

提示 1292 - Truncated incorrect DOUBLE value: '总部营销中心xxx'

如果用了where 条件请在条件上 完全遵从数据格式,(字段定义的什么类型,赋值的话也赋值对应类型信息)   an = '1'

posted @ 2025-05-12 09:24  东方素  阅读(79)  评论(0)    收藏  举报