Note
This variable is available starting with V2.2.77.
Description
version is used to view the server version.
Privilege requirements
Query variables
systenants and all user tenants can use theSHOW VARIABLESstatement or theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) and theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of Global system variables.Modify variables
systenants can directly modify the values of Global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of Global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of Global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Varchar |
| Default value | 5.7.25-OceanBase-v4.0.0.0 |
| Value range | |
| Scope | Global |
| Modifiable | Yes. You can execute the SET statement to modify the value. |
Examples
Set the version to the default version.
obclient> SET GLOBAL version='';