Použijte CONCAT
http://dev.mysql.com/doc /refman/5.1/cs/string-functions.html#function_concat
SELECT CONCAT(1, 2);
-- "12"
SELECT CONCAT('foo', 'bar');
-- "foobar"
SELECT CONCAT(1, 'bar');
-- "1bar"
Použijte CONCAT
http://dev.mysql.com/doc /refman/5.1/cs/string-functions.html#function_concat
SELECT CONCAT(1, 2);
-- "12"
SELECT CONCAT('foo', 'bar');
-- "foobar"
SELECT CONCAT(1, 'bar');
-- "1bar"