sql中的替换某属性的一部分值。(匹配替换)
update file set filePath = REPLACE(filePath, "asd", "qqq") where filePath like concat('%', "asd", '/%')
其中filePath为属性,asd为原先的,qqq为替换后的。 concat那部分是匹配 asd
update file set filePath = REPLACE(filePath, "asd", "qqq") where filePath like concat('%', "asd", '/%')
其中filePath为属性,asd为原先的,qqq为替换后的。 concat那部分是匹配 asd