MySQL Other Functions
This page lists some MySQL functions that have no exact classification.
-
ANY_VALUE
The MySQLANY_VALUE()
function returns any value in the specified column. It is used in aGROUP BY
statement to suppress errors caused byONLY_FULL_GROUP_BY
. -
BIN_TO_UUID
The MySQLBIN_TO_UUID()
function converts a specified binary UUID to a string UUID and returns the result. -
BINARY
The MySQLBINARY
operator converts a regular string to a binary string. -
CAST
The MySQLCAST()
function converts the parameter value of any type to a value of the specified type and return the result. -
COALESCE
The MySQLCOALESCE()
function returns the first value in the parameter list that is not NULL. -
CONVERT
The MySQLCONVERT()
function converts the parameter value of any type to the specified type or character set. -
DEFAULT
The MySQLDEFAULT()
function returns the default value for the specified column. -
INET_ATON
The MySQLINET_ATON()
function converts the specified IP address ina.b.c.d
form to a numeric IP in network byte order. -
INET_NTOA
The MySQLINET_NTOA()
function converts a specified numeric IP in network byte order to an IP address ina.b.c.d
form. -
INET6_ATON
The MySQLINET6_ATON()
function converts the specified IPv6 or IPv4 address to a binary string of numbers representing the address in network byte order. -
INET6_NTOA
The MySQLINET6_NTOA()
function converts the specified numeric IPv6 or IPv4 address to string form. -
IS_IPV4
The MySQLIS_IPV4()
function checks whether the given parameter is a valid IPv4 address. -
IS_IPV4_COMPAT
The MySQLIS_IPV4_COMPAT()
function checks whether a numeric IPv6 address is an IPv4-compatible IPv6 address. -
IS_IPV4_MAPPED
The MySQLIS_IPV4_MAPPED()
function checks whether a numeric IPv6 address is an IPv4-mapped IPv6 address. -
IS_IPV6
The MySQLIS_IPV6()
function checks whether the given parameter is a valid IPv6 address. -
IS_UUID
The MySQLIS_UUID()
function checks whether a given string is a valid UUID string. -
ISNULL
The MySQLISNULL()
function checks whether the specified parameter isNULL
. -
NAME_CONST
The MySQLNAME_CONST()
function are for MySQL internal use only and returns a given constant value with the specified column name. -
SLEEP
The MySQLSLEEP()
function pauses (sleeps) the current query for the specified number of seconds. -
UUID
The MySQLUUID()
function generates a Universally Unique Identifier (UUID) according to RFC 4122 and returns it. -
UUID_SHORT
The MySQLUUID_SHORT()
function returns a short universal identifier (64-bit unsigned integer) that is unique under certain conditions. -
UUID_TO_BIN
The MySQLUUID_TO_BIN()
function converts a specified string UUID to a binary UUID and returns the result.