Note
This view is available starting with V2.2.77.
Purpose
This view displays information about parameters and return values of stored procedures in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SPECIFIC_CATALOG | varchar(512) | NO | Fixed value (def). |
| SPECIFIC_SCHEMA | varchar(128) | NO | Database name. |
| SPECIFIC_NAME | varchar(64) | NO | Stored procedure name. |
| ORDINAL_POSITION | bigint(20) | NO | Parameter position. For the return value of a function, this value is 0. |
| PARAMETER_MODE | varchar(5) | NO | Parameter type:
|
| PARAMETER_NAME | varchar(64) | YES | Parameter name. |
| DATA_TYPE | varchar(64) | NO | Parameter data type. |
| CHARACTER_MAXIMUM_LENGTH | bigint(20) | NO | For string-type parameters, the maximum length of characters. |
| CHARACTER_OCTET_LENGTH | bigint(20) | NO | For string-type parameters, the maximum length of bytes. |
| NUMERIC_PRECISION | bigint(20) unsigned | NO | For numeric-type parameters, the precision. |
| NUMERIC_SCALE | bigint(20) | NO | For numeric-type parameters, the scale. |
| DATETIME_PRECISION | bigint(20) unsigned | NO | For date-type parameters, the precision. |
| CHARACTER_SET_NAME | varchar(64) | NO | For string-type parameters, the character set. |
| COLLATION_NAME | varchar(64) | NO | For string-type parameters, the collation. |
| DTD_IDENTIFIER | longtext | NO | The detailed information of the data type in character form. |
| ROUTINE_TYPE | varchar(9) | NO | The type of the stored procedure (procedure/function). |
Sample query
Query information about parameters and return values of stored procedures in the current tenant.
obclient[test]> SELECT * FROM information_schema.PARAMETERS\G
The query result is as follows:
*************************** 1. row ***************************
SPECIFIC_CATALOG: def
SPECIFIC_SCHEMA: test
SPECIFIC_NAME: citycount
ORDINAL_POSITION: 1
PARAMETER_MODE: IN
PARAMETER_NAME: country
DATA_TYPE: char
CHARACTER_MAXIMUM_LENGTH: 3
CHARACTER_OCTET_LENGTH: 12
NUMERIC_PRECISION: NULL
NUMERIC_SCALE: NULL
DATETIME_PRECISION: NULL
CHARACTER_SET_NAME: utf8mb4
COLLATION_NAME: utf8mb4_general_ci
DTD_IDENTIFIER: char(3)
ROUTINE_TYPE: PROCEDURE
*************************** 2. row ***************************
SPECIFIC_CATALOG: def
SPECIFIC_SCHEMA: test
SPECIFIC_NAME: citycount
ORDINAL_POSITION: 2
PARAMETER_MODE: OUT
PARAMETER_NAME: cities
DATA_TYPE: int
CHARACTER_MAXIMUM_LENGTH: NULL
CHARACTER_OCTET_LENGTH: NULL
NUMERIC_PRECISION: 11
NUMERIC_SCALE: 0
DATETIME_PRECISION: NULL
CHARACTER_SET_NAME: binary
COLLATION_NAME: binary
DTD_IDENTIFIER: int(11)
ROUTINE_TYPE: PROCEDURE
2 rows in set