update A表 set B字段=replace(B字段,'.png','.jpg') where B字段 like '%.png'
这样?
UPDATE A SET B=REPLACE(B,'.png','.jpg') WHERE B LIKE '%.png'
字符串替换:
select B = replace(B,'.png','.jpg') from A where B like '%.png'
UPDATE ecs_goods SET goods_img= REPLACE(goods_img,'.jpg','.png'),original_img= REPLACE(original_img,'.jpg','.png')选我啊,亲测