mysql在front_imgs这个字段中,后边增加一个字符串'.jpg'。
UPDATE tb_invoice SET front_imgs=concat(front_imgs,'.jpg' ) WHERE front_imgs LIKE '%http://dsimg.bmwriches.cn%'
mysql在front_imgs这个字段中,替换某个内容。
被替换:http://dsimg.bmwriches.cn
新的内容:http://mega.aaeat.com
UPDATE tb_invoice SET front_imgs= replace(front_imgs,'http://dsimg.bmwriches.cn','http://mega.aaeat.com') WHERE front_imgs LIKE '%http://dsimg.bmwriches.cn%'
mysql在front_imgs这个字段中,替换某个内容。
被替换:,
新的内容:.jpg,
UPDATE tb_invoice SET front_imgs= replace(front_imgs,',','.jpg,') WHERE front_imgs LIKE '%http://mega.aaeat.com/mega/upload/2018%'