I am stuck searching for a way to do the following. I have a simple table which looks
+-------------------+----------+----------+
| coord | lat | lng |
+-------------------+----------+----------+
| 9.08273, 10.92773 | | |
+-------------------+----------+----------+
What I want is
+-------------------+----------+----------+
| coord | lat | lng |
+-------------------+----------+----------+
| 9.08273, 10.92773 | 9.08273 | 10.92773 |
+-------------------+----------+----------+
I looked at STRING_SPLIT and also at How do I split a string so I can access item x? @SO, but there does not seem to exist something like
STRING_SPLIT(columnname, ', ')[1]
STRING_SPLIT(columnname, ', ')[2]
to use this later maybe in a way like
UPDATE tablename SET lat = STRING_SPLIT(columnname, ', ')[1], SET lng = STRING_SPLIT(columnname, ', ')[2];
All approaches end up in creating