sql中的替换某属性的一部分值。(匹配替换)

update file set filePath = REPLACE(filePath, "asd", "qqq") where filePath like concat('%', "asd", '/%')

 

其中filePath为属性,asd为原先的,qqq为替换后的。  concat那部分是匹配 asd

 

 

posted on 2021-09-28 20:42  汤姆猫8  阅读(189)  评论(0)    收藏  举报