In MariaDB, DATABASE()
is a built-in function that returns the default (current) database name.
The result is returned as a string in the utf8
character set.
In MariaDB, DATABASE()
is a built-in function that returns the default (current) database name.
The result is returned as a string in the utf8
character set.
In MariaDB, SYSTEM_USER()
is a synonym for the USER()
function. It returns the current MariaDB user name and host name, given when authenticating to MariaDB.
In MariaDB, SESSION_USER()
is a synonym for the USER()
function. It returns the current MariaDB user name and host name, given when authenticating to MariaDB.
In MariaDB, CURRENT_USER()
is a built-in function that returns the user name and host name combination for the MariaDB account that the server used to authenticate the current client.
In MariaDB, USER()
is a built-in function that returns the current MariaDB user name and host name, given when authenticating to MariaDB.
Below are 4 functions that enable you to return the year from a date in MariaDB. Three functions return just the year, and one returns both the year and week.
Continue readingIn MariaDB, every thread (including each event) has an ID that is unique among the set of currently connected clients. The CONNECTION_ID()
function is a built-in function that returns the connection ID (thread ID) for the connection.
This article contains a full list of built-in MariaDB string functions and operators.
Continue readingIn MariaDB, BENCHMARK()
is a built-in function that executes an expression a specified number of times.
It can be used to time how quickly MariaDB processes the expression.
The result is always 0
. The function is intended to be used within the mysql command line tool, which reports query execution times.
If you’re trying to run SHOW LOCALES
but it’s not working, it’s probably because the LOCALES
plugin hasn’t been installed yet. Installing that plugin should hopefully fix the problem.