I have a table with characters Name, Aepllido, Cedula and Date of Birth, and I receive a series of sentences similar to
Luis*Lopez*273982*24/12/1998|Juan*Gonzalez*232234*03/12/1987|Julio*Perez*274234*03/12/1995
I want to be able to delimit the insert using two special characters, where the |
is the line break and the *
the insertion between columns
I managed to solve the line break between tables using this query
SELECT regexp_split_to_table('Luis*Lopez*273982*24/12/1998|Juan*Gonzalez*232234*03/12/1987|Julio*Perez*274234*03/12/1995', '\|')
But I still can not think of how to create the function that separates through * and insert in the columns, Thanks in advance to those who can help