System Functions

Function name

Description

DATABASE()

Returns the name of the database corresponding to the connection.

IFNULL(exp_value)

If exp is null, value is returned. If exp is not null, exp is returned.

USER()

Returns the user name in the DBMS.