MariaDB Control Functions
This page organizes commonly used flow control and logic judgment functions in MariaDB.
-
BENCHMARK()
In MariaDB,BENCHMARK()is a built-in function that repeats a given expression a specified number of times. -
CAST()
In MariaDB,BENCHMARK()is a built-in function that converts a given value to the specified type and returns it. -
COALESCE()
In MariaDB,COALESCE()is a built-in function that returns the first non-NULL value in the argument list. -
CONVERT()
In MariaDB, itCONVERT()is a built-in function that converts any type of parameter value to the specified type or character set. -
DEFAULT()
In MariaDB,DEFAULT()is a built-in function that returns the default value of a given table column. -
GREATEST()
In MariaDB,GREATEST()is a built-in function that returns the maximum value from a given list of arguments. -
IFNULL()
In MariaDB,IFNULL()is a built-in function that returns the second parameter if the first parameter isNULL, otherwise returns the first parameter. -
ISNULL()
In MariaDB,ISNULL()is a built-in function that returns1if the gaven parameter isNULL, otherwise returns0. -
LEAST()
In MariaDB,LEAST()is a built-in function that returns the minimum value from a given list of arguments. -
NULLIF()
In MariaDB,NULLIF()is a built-in function that returnsNULLif the two given arguments are equal, otherwise returns the first argument. -
NVL()
In MariaDB,NVL()is a built-in function that returns the first parameter if the first parameter is notNULL, otherwise returns the second parameter. -
SLEEP()
In MariaDB,SLEEP()is a built-in function that pauses (sleeps) the current query for a specified number of seconds.