Home > Database > Mysql Tutorial > What does the MySQL EXPORT_SET() function return if any argument is NULL?

What does the MySQL EXPORT_SET() function return if any argument is NULL?

王林
Release: 2023-09-02 20:17:02
forward
1208 people have browsed it

如果任何参数为 NULL,MySQL EXPORT_SET() 函数返回什么?

If any parameter provided in the MySQL EXPORT_SET() function is NULL, the function will return NULL. The following example will demonstrate it -

Example

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)
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template