Answer the question
In order to leave comments, you need to log in
How to merge 2 columns in MySQL using PhpMyAdmin into one?
Let's say there is a customers table.
It has columns customers_firstname and customers_lastname.
It is necessary to combine them so that the textual information from them is displayed through a space in one column.
Those. was separately customers_firstname: Ivan , customers_lastname: Ivanov
and will be in the customers_firstname field (then I will rename or you can immediately create a new one): Ivan Ivanov
Answer the question
In order to leave comments, you need to log in
Look:
Change:
UPDATE `customers` SET customers_fullname = CONCAT(customers_firstname, " ", customers_lastname);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question