Returns the username of the user that is currently logged in to the system. This function cannot be used in a reflection.
QUERY_USER() → varchar
SELECT QUERY_USER() -- email@example.com
Was this page helpful?
Glad to hear it! Thank you for your feedback. Sorry to hear that. Thank you for your feedback.