I have a field in a table in a PostgreSQL 8 database whose values are strings and have hyphens in some irregular positions.
I would like to replace the first occurrence of the hyphen in the string with a space, but I could not find anything appropriate in documentation .
The functions I found as REPLACE () replace all occurrences and not just the first one as I would wish.
Currently I'm exporting the .CSV results and opening in MS Excel. With the =SUBSTITUIR(A1;"-";" ";1)
function, I can do this. But I try to be more efficient and waste my time doing this.
Thanks for the community's help in advance.