Select
SUBSTRING_INDEX(OwnerAddress, ',' , -1),
SUBSTRING_INDEX(OwnerAddress, ',' , -2)
,SUBSTRING_INDEX(OwnerAddress, ',' , -3)
From mytable;
I want to split address, city and state in mysql from the field "OwnerAddress". The whole row which is address formatted like this "1003 BRILEY PKWY, NASHVILLE, TN".