I have data stored as text within a MySQL database that has values separated by newlines which I need to split into rows. A single text field might look like this:
---
'2022-06-19': no_capacity
'2022-06-20': no_capacity
'2022-06-21': available
'2022-06-22': available
...
Yes this is an example of a single text field. There can be anywhere between 100-500 \n's. The dates themselves are also unpredictable.
I need each one of these 'rows' within the entry to be returned as an actual row in a table (and then columns split on the colon, but that is less important).Can this be done using a MySQL query?