有一批编码和名称,需要在名称后面添加后缀,怎么以编码为准修改sql中的数据呢?
用where 批量update呀。
update 表名 set 名称 = concat(名称, 后缀) where 编码 = ???