MySQL Functions (Advanced)
- BIN: This function returns representation in binary of a number
- BINARY: This function converts a value to a binary string
- CASE: This function goes through conditions and returns a value when the first condition is met
- CAST: This function converts a value (of any type) into a specified datatype
- COALESCE: This function returns first non-null value in a list
- CONNECTION_ID: This function returns the unique connection ID for the current connection
- CONV: This function converts a number from one numeric base system to another
- CONVERT: This function converts a value into the specified datatype or character set
- CURRENT_USER: This function returns the user name and hostname for the MySQL account that the server used to authenticate the current client
- DATABASE: This function returns the name of current database.
- IF: This function returns a value if a condition is a TRUE or another value if a condition is FALSE
- IFNULL: This function returns a specified value if the expression is NULL. Otherwise, return the expression
- ISNULL: This function returns 1 or 0 depending on whether an expression is NULL
- LAST_INSERT_ID: This function returns the AUTO_INCREMENT id of the last row that has been inserted or updated in a table
- NULLIF: This function compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned
- SESSION_USER: This function returns MySQL user name which currently appear and hostname
- SYSTEM_USER: This function returns the current MySQL user name and hostname
- USER: This function returns the current MySQL user name and hostname
- VERSION: This function returns the current version of the MySQL database