I've created a layer with photos using the tools in QGIS. This yields a table, where each line contains a filepath to a photo. So far so good. But the paths are all absolute. I'd like to share this project with others and would like to make the paths relative.
I tried so using the DB manager, running this query:
update
"Fotos Mai 2022"
set
photo = replace(photo, 'C:\Users\Username\Documents\GIS-Project', '..');
But as a response I get the error-message:
Query execution error on CREATE TEMP VIEW _tview AS update "Fotos Mai 2022" set photo = replace(photo, 'C:\Users\Username\Documents\GIS-Project', '..'): 1 - near "update": syntax error
How can I troubleshoot this issue?