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()returns the single active role for the current session, orNULLwhen no role is active. -
CURRENT_USER()
MariaDB CURRENT_USER() returns the account name and host the server uses to authenticate the 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_INCREMENTcolumn 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()
Learn when MariaDB ROWNUM() is available, how it counts accepted rows, and why LIMIT or ROW_NUMBER() is better for predictable results. -
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_v4()
MariaDB UUID_v4() generates a random version 4 UUID. The function is available in MariaDB 11.7 and later. -
UUID_v7()
MariaDB UUID_v7() generates a time-ordered version 7 UUID. The function is available in MariaDB 11.7 and later. -
UUID()
MariaDB UUID() generates a version 1 UUID. Learn its format, platform behavior, replication caveat, and how it differs from UUID_v4() and UUID_v7(). -
VERSION()
In MariaDB,VERSION()is a built-in function that returns a UTF8 string representing the version of MariaDB server.