Mega Code Archive

 
Categories / MySQL / String
 

CONCAT(string1, string2 [{, string} ])

mysql> mysql> mysql> SELECT CONCAT('cats', ' ', 'and', ' ', 'dogs'); +-----------------------------------------+ | CONCAT('cats', ' ', 'and', ' ', 'dogs') | +-----------------------------------------+ | cats and dogs                           | +-----------------------------------------+ 1 row in set (0.00 sec)