Collections:
CURRENT_ROLE() - Current Role of Logged-In User
How to obtain the current role of the logged-in user using the CURRENT_ROLE() function?
✍: FYIcenter.com
CURRENT_ROLE() is a MySQL built-in function that
returns the current role of the logged-in user.
For example:
SELECT CURRENT_ROLE(); -- +----------------+ -- | CURRENT_ROLE() | -- +----------------+ -- | NONE | -- +----------------+
Reference information of the CURRENT_ROLE() function:
CURRENT_ROLE(): role Returns the current role of the logged-in user. Arguments, return value and availability: role: Return value. The current role of the logged-in user. Available since MySQL 4.0.
⇒ CURRENT_USER() - Authentication Name of Current User
⇐ CONNECTION_ID() - Thread ID of Current Connection
2024-07-15, 2596🔥, 0💬
Popular Posts:
How To Convert Characters to Numbers in Oracle? You can convert characters to numbers by using the T...
What Are the Differences between DATE and TIMESTAMP in Oracle? The main differences between DATE and...
How to set the current database in SQL Server? Once you are connected to the SQL Server, you should ...
How To Concatenate Two Character Strings Together in SQL Server Transact-SQL? Concatenating two char...
Where to find answers to frequently asked questions on Managing Security, Login and User in SQL Serv...