Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在表 abook 的列图像中的 example.jpg 之前添加相对路径 [images/abook] 我正在使用 MySQL phpmyadmin。我想在 180 条记录中添加这条路径。有什么方法可以实现这一点。
您可以使用纯 sql 来达到您的目的
UPDATE abook SET image=CONCAT('images/abook/',image);
如果您希望对符合特定条件的行执行此操作,则应使用 where 子句