0

I have a table which contains 3 columns, fname Lname and description. I want to take the values of Fname and Lname and append them to description (Move this data to the end of the description field without overwriting the current info in the field). Is this possible with MySQL at all?

1
  • 1
    are you looking for the CONCAT() function? Commented Oct 15, 2012 at 11:39

2 Answers 2

2
    Please update function as per req...and concatination of string :
Here Concat function is used for concat string..:

update table_name set description = CONCAT(description,' ',fname,' ',Lname);

Sign up to request clarification or add additional context in comments.

1 Comment

Exactly hat i was looking thanks for pointing out the function i needed.
0
update your_table_name set description = CONCAT(description,' ', fname,' ',Lname); 

1 Comment

thanks for the review :) i did not put any whitespace since the question did not mention them... but it's ok, i think that's what he meant.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.