There are a couple of approaches we can use to concatenate strings and numbers in MySQL.
- We can use the
CONCAT()function, which concatenates its arguments. - We can use the pipe concatenation operator (
||), which concatenates its operands.
Below are examples of each.