E.3. MON$CONTEXT_VARIABLES
MON$CONTEXT_VARIABLES
displays information about custom context variables.
Column Name | Data Type | Description |
---|---|---|
|
| Connection identifier.
It contains a valid value only for a connection-level context variable.
For transaction-level variables it is |
|
| Transaction identifier.
It contains a valid value only for transaction-level context variables.
For connection-level variables it is |
|
| Context variable name |
|
| Context variable value |
Retrieving all session context variables for the current connection
|
SELECT
| VAR.MON$VARIABLE_NAME,
| VAR.MON$VARIABLE_VALUE
|FROM MON$CONTEXT_VARIABLES VAR
|WHERE VAR.MON$ATTACHMENT_ID = CURRENT_CONNECTION