SQL system functions supported

Function Description
DATABASE( ) Returns the name of the database corresponding to the connection handle. This is the database name from the server sources file.
IFNULL(exp,value) If exp is null, value is returned. If exp is not null, exp is returned. The possible data type(s) of value must be compatible with the data type of exp.
USER( ) Returns the server login id.