Advanced functions Flashcards
Returns a binary representation of a number
BIN
Converts a value to a binary string
BINARY
Goes through conditions and return a value when the first condition is met
CASE
Converts a value (of any type) into a specified datatype
CAST
Returns the first non-null value in a list
COALESCE
Returns the unique connection ID for the current connection
CONNECTION ID
Converts a number from one numeric base system to another
CONV
Converts a value into the specified datatype or character set
CONVERT
Returns the user name and host name for the MySQL account that the server used to authenticate the current client
CURRENT USER
Returns the name of the current database
DATABASE
Returns a value if a condition is TRUE, or another value if a condition is FALSE
IF
Return a specified value if the expression is NULL, otherwise return the expression
IFNULL
Returns 1 or 0 depending on whether an expression is NULL
ISNULL
Returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table
LAST INSERT ID
Compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned
NULLIF