July 2002
Beginner
424 pages
9h 30m
English
Use the CURRENT_USER function to identify the active user within the database server.
CURRENT_USER
SELECT CURRENT_USER AS "User";
|
User ------- cfehily |
✓ Tips
You can use user functions in SELECT, WHERE, and ORDER BY clauses or anywhere an expression is allowed.
SQL also defines the SESSION_USER and SYSTEM_USER functions. The current user indicates the authorization identifier under whose privileges SQL statements currently are run. (The current user may have permission to run, say, only SELECT statements.) The session user indicates the authorization ...
Read now
Unlock full access