System Functions (ODBC Scalar Functions)
Function Descriptions
DATABASE()
Returns the name of the database.
IFNULL(exp, value)
If exp is null, value is returned. If exp is not null, exp is returned.
USER()
Returns the user name. This may be different from the login name.