MariaDB Information Function
This page organizes MariaDB’s built-in functions for obtaining commonly used information.
-
CHARSET()
In MariaDB,CHARSET()
is a built-in function that returns the character set of a given string. -
COERCABILITY()
In MariaDB,COERCIBILITY()
is a built-in function that returns the collation-enforced value for a given string argument. -
COLLATION()
In MariaDB,COLLATION()
is a built-in function that returns the collation for a given string. -
CONNECTION_ID()
In MariaDB,CONNECTION_ID()
is a built-in function that returns the unique ID for the current connection. -
CURRENT_ROLE()
In MariaDB,CURRENT_ROLE()
is a built-in function that returns a string representing the roles currently active in the current session, with multiple roles separated by commas. -
CURRENT_USER()
In MariaDB,CURRENT_USER()
is a built-in function that returns the username and hostname of the MariaDB account that the MariaDB server uses to authenticate the current client. -
DATABASE()
In MariaDB,DATABASE()
is a built-in function that returns the current database name as a string. -
FOUND_ROWS()
In MariaDB,FOUND_ROWS()
is a built-in function that returns the total number of rows for the last query that needed to count rows. -
LAST_INSERT_ID()
In MariaDB,LAST_INSERT_ID()
is a built-in function that returns the value generated by the autoAUTO_INCREMENT
column for the last insertion. -
ROW_COUNT()
In MariaDB,ROW_COUNT()
is a built-in function that returns the number of rows affected by the last update, insert or delete statement. -
ROWNUM()
In MariaDB,ROWNUM()
is a built-in function that returns the row number for each row in the current query. -
SCHEMA()
In MariaDB,SCHEMA()
is a built-in function that returns the current database name as a string. -
SESSION_USER()
In MariaDB,SESSION_USER()
is a built-in function that returns the username and hostname of the current MariaDB account. -
SYS_GUID()
In MariaDB,SYS_GUID()
is a built-in function that returns a 16-byte globally unique identifier (GUID). -
SYSTEM_USER()
In MariaDB,SYSTEM_USER()
is a built-in function that returns the username and hostname of the current MariaDB account. -
USER()
In MariaDB,USER()
is a built-in function that returns the username and hostname of the current MariaDB account. -
UUID_SHORT()
In MariaDB,UUID_SHORT()
is a built-in function that returns a short, conditionally unique Universal Identifier (UUID). -
UUID()
In MariaDB,UUID()
is a built-in function that returns a Universally Unique Identifier (UUID) generated according to RFC 4122. -
VERSION()
In MariaDB,VERSION()
is a built-in function that returns a UTF8 string representing the version of MariaDB server.