mysql中的updatereplace命令

mysql中的updatereplace命令,mysql,replace,Mysql,Replace,全部, 在名为is recn的表中名为(path)的字段中,我有以下数据/home/user1/Computer-Science-10_1-10_7-17//html/Compu.html 如何替换 /mysql中的home/user1/Computer-Science-10_1-10_7-17//html/Compu.html和/home/user1/path/files/Computer-Science-10_1-10_7-17//html/Compu.html 还有许多行,如/home/u

全部,

在名为is recn的表中名为(path)的字段中,我有以下数据/home/user1/Computer-Science-10_1-10_7-17//html/Compu.html

如何替换

/mysql中的home/user1/Computer-Science-10_1-10_7-17//html/Compu.html和/home/user1/path/files/Computer-Science-10_1-10_7-17//html/Compu.html

还有许多行,如/home/user1,我必须用/home/user1/path/files替换它们

谢谢….

这就是你想要的吗

UPDATE mytable SET mycolumn 
  = REPLACE(mycolumn, '/home/user1','/home/user1/path/files');
这是你想要的吗

UPDATE mytable SET mycolumn 
  = REPLACE(mycolumn, '/home/user1','/home/user1/path/files');