Using CONCAT_WS with NULL value : CONCAT_WS « String Functions « MySQL Tutorial






mysql>
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>








23.9.CONCAT_WS
23.9.1.CONCAT_WS(separator,str1,str2,...)
23.9.2.Using CONCAT_WS with NULL value
23.9.3.Using CONCAT_WS with data in a table