I transfer the site from the crutch framework to my engine, this problem arose:
In the database table, such paths to the pictures: audi/1.jpg , bmw/1.jpg , etc. You need to add paths with the substring /uploads/catalog/ , i.e. paths should be /uploads/catalog/audi/1.jpg
The directory is large, manual editing is not an option.
Question: How can I fill in all the records in this field with a substring with one sql query?
uploadsis the root directory, and when I select a file, this is the wayuploads/...returns, and do I have a lot of memory if I have to substituteuploads/catalog/, there are a lot of modules in the engine and each has its own folder in/uploads, besides, I write simple informational websites on this engine, and spending time and complicating the code to save a couple of megabytes is not the case - Anatoly Shevelev