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?
2 Answers
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);
1 Comment
user1746927
Exactly hat i was looking thanks for pointing out the function i needed.
update your_table_name set description = CONCAT(description,' ', fname,' ',Lname);
1 Comment
Matei Suica
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.
CONCAT()function?