I am attempting to take a field and break it into two seperate fields.
Using the select statement below I am able to see it broken into two fields
select name, substring(name, 1, instr(name, ',') - 1) first, substring(name, instr(name, ',') + 1) from doctor
OUTPUT
NAME | FIRST | LAST
Doe, John | John | Doe
What I am unsure about is how to turn this into an update query to place into the appropriate fields name 'first' and 'last'
Thanks in advance.