Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


27.3.6.12 MySQL Functions

The following SQL built-in functions can be called directly from themysql namespace. These are described in the following list, along with their analogous SQL functions:

  • rand() (MySQLRAND()): Returns a random floating-point valuev in the range 0 <=v < 1.0.

  • sleep(seconds) (MySQLSLEEP()): Pauses forseconds seconds, then returns 0.

  • uuid() (MySQLUUID()): Returns a Universal Unique Identifier (UUID).

  • isUUID(argument) (MySQLIS_UUID()): Returns 1 if theargument is a valid string-format UUID, 0 if it is not a valid UUID, andNULL if the argument isNULL.