If any parameter provided in the MySQL EXPORT_SET() function is NULL, the function will return NULL. The following example will demonstrate it -
mysql> Select EXPORT_SET(NULL, 'Y','N',',', 4); +----------------------------------+ | EXPORT_SET(NULL, 'Y','N',',', 4) | +----------------------------------+ | NULL | +----------------------------------+ 1 row in set (0.00 sec) mysql> Select EXPORT_SET(5, NULL,'N',',', 4); +--------------------------------+ | EXPORT_SET(5, NULL,'N',',', 4) | +--------------------------------+ | NULL | +--------------------------------+ 1 row in set (0.00 sec) mysql> Select EXPORT_SET(5, 'Y','N',',', NULL); +----------------------------------+ | EXPORT_SET(5, 'Y','N',',', NULL) | +----------------------------------+ | NULL | +----------------------------------+ 1 row in set (0.00 sec) mysql> Select EXPORT_SET(5, 'Y','N',NULL, 4); +--------------------------------+ | EXPORT_SET(5, 'Y','N',NULL, 4) | +--------------------------------+ | NULL | +--------------------------------+ 1 row in set (0.00 sec)
The above is the detailed content of What does the MySQL EXPORT_SET() function return if any argument is NULL?. For more information, please follow other related articles on the PHP Chinese website!