String concatenation in MySQL
MySQL is different from most DBMSs’ use of + or || for concatenation. It uses the CONCAT function: SELECT CONCAT(first_name, ‘ ‘, last_name) AS Name FROM test.student There’s also the CONCAT_WS (Concatenate With Separator) function, which is a special form of CONCAT(): SELECT CONCAT_WS(‘ ‘, first_name, last_name) from test.student That said, if you want to … Read more