dalla guida di mysql:
CONCAT(str1,str2,...)
Returns the string that results from concatenating the arguments. Returns NULL if any argument is NULL. May have one or more arguments. If all arguments are non-binary strings, the result is a non-binary string. If the arguments include any binary strings, the result is a binary string. A numeric argument is converted to its equivalent binary string form.
mysql> SELECT CONCAT('My', 'S', 'QL');
-> 'MySQL'
mysql> SELECT CONCAT('My', NULL, 'QL');
-> NULL
mysql> SELECT CONCAT(14.3);
-> '14.3'
in pratica ti serve per unire due campi in una query, oppure, come vedi nell'esempio anche stringhe che inserisci tu.
la guida è qui http://dev.mysql.com/doc/mysql/en/string-functions.html
![]()