A variable is a value that may have a varying value over time.
A variable has a name, so you can refer to it.
SQL supports two types of variables:
Examples of Oracle System Variables (Pseudo Columns)
Variable | Description |
---|---|
SYSDATE | The current system date in the database |
CURRENT_DATE | The current date at the client application side |
SYSTIMESTAMP | The system date and exact time, with time zone information |
LOCALTIMESTAMP | The system date and exact time, with time zone information, at the client application side |
USER | The name used to connect to the database |