Viewing 3 posts - 1 through 3 (of 3 total)
how do I mark a question as solved?
November 1, 2013 at 10:27 am
#1663506
update my_contacts
set city = substring_index(location, ',', 1),
state = substring_index(location, ',',-1) ;
solves the problem!
November 1, 2013 at 10:15 am
#1663499
there is a substring_index function in MySQL, what is interesting is when I tried your code I get a syntax err msg stating "unknown column city in field list" and...
November 1, 2013 at 7:59 am
#1663416