The PARAMETERS table provides
information about parameters for stored routines (stored
procedures and stored functions), and about return values for
stored functions. The PARAMETERS
table does not include built-in (native) functions or loadable
functions.
The PARAMETERS table has these
columns:
SPECIFIC_CATALOGThe name of the catalog to which the routine containing the parameter belongs. This value is always
def.SPECIFIC_SCHEMAThe name of the schema (database) to which the routine containing the parameter belongs.
SPECIFIC_NAMEThe name of the routine containing the parameter.
ORDINAL_POSITIONFor successive parameters of a stored procedure or function, the
ORDINAL_POSITIONvalues are 1, 2, 3, and so forth. For a stored function, there is also a row that applies to the function return value (as described by theRETURNSclause). The return value is not a true parameter, so the row that describes it has these unique characteristics:The
ORDINAL_POSITIONvalue is 0.The
PARAMETER_NAMEandPARAMETER_MODEvalues areNULLbecause the return value has no name and the mode does not apply.
PARAMETER_MODEThe mode of the parameter. This value is one of
IN,OUT, orINOUT. For a stored function return value, this value isNULL.PARAMETER_NAMEThe name of the parameter. For a stored function return value, this value is
NULL.DATA_TYPEThe parameter data type.
The
DATA_TYPEvalue is the type name only with no other information. TheDTD_IDENTIFIERvalue contains the type name and possibly other information such as the precision or length.CHARACTER_MAXIMUM_LENGTHFor string parameters, the maximum length in characters.
CHARACTER_OCTET_LENGTHFor string parameters, the maximum length in bytes.
NUMERIC_PRECISIONFor numeric parameters, the numeric precision.
NUMERIC_SCALEFor numeric parameters, the numeric scale.
DATETIME_PRECISIONFor temporal parameters, the fractional seconds precision.
CHARACTER_SET_NAMEFor character string parameters, the character set name.
COLLATION_NAMEFor character string parameters, the collation name.
DTD_IDENTIFIERThe parameter data type.
The
DATA_TYPEvalue is the type name only with no other information. TheDTD_IDENTIFIERvalue contains the type name and possibly other information such as the precision or length.ROUTINE_TYPEPROCEDUREfor stored procedures,FUNCTIONfor stored functions.