利用replace 和 substring函数实现,更新product_img_url表的image_url 是 http:开头的,批量替换成https:
update product_img_url set image_url = replace(image_url,'http:','https:') where substring(image_url,1,5)='http:'
利用replace 和 substring函数实现,更新product_img_url表的image_url 是 http:开头的,批量替换成https:
update product_img_url set image_url = replace(image_url,'http:','https:') where substring(image_url,1,5)='http:'