Mega Code Archive

 
Categories / MySQL Tutorial / String Functions
 

Using CONCAT_WS with NULL value

mysql> mysql> SELECT CONCAT_WS(',','First name',NULL,'Last Name'); +----------------------------------------------+ | CONCAT_WS(',','First name',NULL,'Last Name') | +----------------------------------------------+ | First name,Last Name                         | +----------------------------------------------+ 1 row in set (0.00 sec) mysql>