Simply Asking, Is there any function available in mysql to split single row elements in to multiple columns ? I have a table row with the fields, user_id, user_name, u
user_id, user_name, u
This is a bad design, If you can change it, store the data in 2 tables:
table users: id, name, surname ... table users_location: user_id (fk), location
users_location would have a foreign key to users thorugh user_id field