MySQL 9.3 Reference Manual Including MySQL NDB Cluster 9.3
The following SQL built-in functions can be called directly from
the mysql
namespace. These are described in
the following list, along with their analogous SQL functions:
rand()
(MySQL
RAND()
): Returns a random
floating-point value v
in the
range 0 <= v
< 1.0.
sleep(
(MySQL seconds
)SLEEP()
): Pauses for
seconds
seconds, then returns 0.
uuid()
(MySQL
UUID()
): Returns a Universal
Unique Identifier (UUID).
isUUID(
(MySQL argument
)IS_UUID()
): Returns 1
if the argument
is a valid
string-format UUID, 0 if it is not a valid UUID, and
NULL
if the argument is
NULL
.