Each row in the SYSPROCPARM system view describes one parameter to a procedure in the database. The underlying system table for this view is ISYSPROCPARM.
Column name | Column type | Column constraint |
---|---|---|
proc_id | UNSIGNED INT | NOT NULL |
parm_id | SMALLINT | NOT NULL |
parm_type | SMALLINT | NOT NULL |
parm_mode_in | CHAR(1) | NOT NULL |
parm_mode_out | CHAR(1) | NOT NULL |
domain_id | SMALLINT | NOT NULL |
width | UNSIGNED INT | NOT NULL |
scale | SMALLINT | NOT NULL |
user_type | SMALLINT | |
parm_name | CHAR(128) | NOT NULL |
"default" | LONG VARCHAR |
proc_id Uniquely identifies the procedure to which the parameter belongs.
parm_id Each procedure starts numbering parameters at 1. The order of parameter numbers corresponds to the order in which they were defined.
For functions, the first parameter has the name of the function and represents the return value for the function.
parm_type The type of parameter will be one of the following:
0 Normal parameter (variable)
1 Result variable - used with a procedure that returns result sets
2 SQLSTATE error value
3 SQLCODE error value
4 Return value from function
parm_mode_in (Y/N) Indicates whether the parameter supplies a value to the procedure (IN or INOUT parameters).
parm_mode_out (Y/N) Indicates whether the parameter returns a value from the procedure (OUT or INOUT parameters) or columns in the RESULT clause.
domain_id Identifies the data type for the parameter, by the data type number listed in the SYSDOMAIN system view.
width Contains the length of a string parameter, the precision of a numeric parameter, or the number of bytes of storage for any other data type.
scale For numeric data types, the number of digits after the decimal point. For all other data types, the value of this column is 1.
user_type The user type of the parameter, if applicable.
parm_name The name of the procedure parameter.
"default" Default value of the parameter. Provided for informational purposes only.
PRIMARY KEY (proc_id, parm_id)
FOREIGN KEY (proc_id) references SYS.ISYSPROCEDURE (proc_id)
FOREIGN KEY (domain_id) references SYS.ISYSDOMAIN (domain_id)
FOREIGN KEY (user_type) references SYS.ISYSUSERTYPE (type_id)