Fok*_*ong 27
这可以通过以下MySQL函数实现:
SELECT REPLACE( table.field, ' ', '-' ) FROM table;
Run Code Online (Sandbox Code Playgroud)
这应该将所有空格替换为 -
update image set path = REPLACE( image.path, ' ', '-' ) where path like '% %'
Run Code Online (Sandbox Code Playgroud)
如果您想更新 mysql 本身中的路径,请对所有带有 %20 空格的行进行更新
| 归档时间: |
|
| 查看次数: |
19544 次 |
| 最近记录: |