Note
This view is introduced in V1.4.
Description
Records information about all session variables, including hidden variables that start with "_".
Fields
Field |
Type |
Null? |
Description |
|---|---|---|---|
| VARIABLE_NAME | varchar(128) | No | Session variable name |
| VARIABLE_VALUE | varchar(1024) | Yes | Session variable value |
Examples
Here is an example of querying the value of the session variable ob_trx_timeout.
obclient [oceanbase]> SELECT * FROM information_schema.SESSION_VARIABLES WHERE VARIABLE_NAME='ob_trx_timeout';
The query result is as follows:
+----------------+----------------+
| VARIABLE_NAME | VARIABLE_VALUE |
+----------------+----------------+
| ob_trx_timeout | 86400000000 |
+----------------+----------------+
1 row in set
