I have a string looks like 'ab bc 123 cd de ef 232' and I need to split this to look like :
| col1 | col2 | col3 |
|---|---|---|
| ab | bc | 123 |
| cd de | ef | 232 |
Numbers have to be in the first column, the last string before the numbers has to be in the second column and all characters before that has to be in the first column.
I am working on PostreSQL and have no idea how to do that