This Oracle tutorial explains how to use the Oracle/PLSQL UID function with syntax and examples.
The Oracle/PLSQL UID function returns the id number for a user's session (the user who is currently logged in).
The syntax for the UID function in Oracle/PLSQL is:
There are no parameters or arguments for the UID function.
The UID function returns a numeric value.
The UID function can be used in the following versions of Oracle/PLSQL:
Let's look at some Oracle UID function examples and explore how to use the UID function in Oracle/PLSQL.
For example:
The variable called parm_uid will now contain the id number for the user's session. The value could be 25, for example.