所有,
在名为(path)的字段中,名为recn的表中包含以下数据/home/user1/Computer-Science-10_1-10_7-17//html/Compu.html
我该如何更换
/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在mysql中
还有很多像/ home/user1这样的行我必须用/ home/user1/path/files替换
谢谢.....
这是你想要的吗?
UPDATE mytable SET mycolumn
= REPLACE(mycolumn, '/home/user1','/home/user1/path/files');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1229 次 |
| 最近记录: |