Session functions
SESSION_USER
Reference material for SESSION_USER function
Returns the name of the user running the current query.
Syntax
Return Types
TEXT
Examples
The following code example shows the effective privileges of the roles directly assigned to the user running the query:
Example
Dynamic security through a view which uses session_user()
.
Returns
user_name | … |
---|---|
alice | … |