Is it possible to replace a specific part of a string with another? E.g. I have a column which holds a path to a file, I renamed the folder download portal (on my physical harddrive) to download_portal, so I have to change the path in thousands of database records.
Example record before and after:
/fileadmin/download portal/test/myfile.jpg
after:
/fileadmin/download_portal/test/myfile.jpg
Let's assume this is my table fruits:
id | path
1 | /fileadmin/download portal/test/apple.jpg
2 | /fileadmin/download portal/test/banana.jpg
3 | /fileadmin/download portal/test/pineapple.jpg
How can I change download portal to download_portal in every record by using SQL? Can I solve it by using regular expressions?
replace?