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, 3137🔥, 0💬
Popular Posts:
How To Concatenate Two Binary Strings Together in SQL Server Transact-SQL? SQL Server 2005 allows to...
How To Break Query Output into Pages in MySQL? If you have a query that returns hundreds of rows, an...
How To Create a Stored Program Unit in Oracle? If you want to create a stored program unit, you can ...
How to print value on console in SQL Server Transact-SQL? How to use the PRINT statements? In Transa...
How To Start Instance with a Minimal Initialization Parameter File in Oracle? The sample initializat...