This tutorial explains how to use the MySQL CONCAT function with syntax and examples.
The MySQL CONCAT function allows you to concatenate two or more expressions together.
The syntax for the CONCAT function in MySQL is:
The expressions to concatenate together.
The CONCAT function can be used in the following versions of MySQL:
Let's look at some MySQL CONCAT function examples and explore how to use the CONCAT function in MySQL.
For example:
You can also concatenate expressions together in MySQL by placing the strings next to each other.
For example:
Using the above method of concatenation, each of the expressions must be a string.