update 表名 set 字段 =CONCAT(left(字段,length(字段) -6),‘2022-’,right(字段,6)) where year = 2022
sql批量更新单字段值并拼接某个特定的值
最新推荐文章于 2024-04-25 09:07:52 发布
update 表名 set 字段 =CONCAT(left(字段,length(字段) -6),‘2022-’,right(字段,6)) where year = 2022