Skip to main content

isemptyUUID

Checks whether an UUID is empty.

Syntax​

isemptyUUID(x)

Arguments​

ArgumentsDescription
xA UUID.

Return Type​

If x is empty, isemptyUUID() returns 1, otherwise it returns 0.

Examples​

mysql> select isemptyUUID(generateUUIDv4());
+-------------------------------+
| isemptyUUID(generateUUIDv4()) |
+-------------------------------+
| 0 |
+-------------------------------+


mysql> select isemptyUUID(zeroUUID());
+-------------------------+
| isemptyUUID(zeroUUID()) |
+-------------------------+
| 1 |
+-------------------------+