I have a column in my table called display name and the data looks like this John Smith I am looking to see if there is away to split the data like so:
display name as first name => John, display name as last name => Smith
Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming MySQL, something like this should work if you always have a single space.
Here is some sample Fiddle that shows you how it works (and when it doesn’t).
Good luck.