MySQL CONCAT: How to Join Two Fields
In MySQL, you can use the CONCAT() function to concatenate two fields. For example, if you have a table called employees with the fields first_name and last_name, you can use the following SQL statement to concatenate these two fields:
SELECT CONCAT(first_name, ' ', last_name) AS full_name
FROM employees;
The above SQL statement concatenates the first_name and last_name fields with a space and names the result as full_name. When querying the results, a field containing the concatenated full name will be returned.