Documentation Home
MySQL 9.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.2Mb
PDF (A4) - 41.3Mb
Man Pages (TGZ) - 262.8Kb
Man Pages (Zip) - 368.8Kb
Info (Gzip) - 4.1Mb
Info (Zip) - 4.1Mb


MySQL 9.4 Reference Manual  / ...  / INFORMATION_SCHEMA Tables  / INFORMATION_SCHEMA General Tables  /  The INFORMATION_SCHEMA PARAMETERS Table

28.3.25 The INFORMATION_SCHEMA PARAMETERS Table

ThePARAMETERS table provides information about parameters for stored routines (stored procedures and stored functions), and about return values for stored functions. ThePARAMETERS table does not include built-in (native) functions or loadable functions.

ThePARAMETERS table has these columns:

  • SPECIFIC_CATALOG

    The name of the catalog to which the routine containing the parameter belongs. This value is alwaysdef.

  • SPECIFIC_SCHEMA

    The name of the schema (database) to which the routine containing the parameter belongs.

  • SPECIFIC_NAME

    The name of the routine containing the parameter.

  • ORDINAL_POSITION

    For successive parameters of a stored procedure or function, theORDINAL_POSITION values 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 theRETURNS clause). The return value is not a true parameter, so the row that describes it has these unique characteristics:

    • TheORDINAL_POSITION value is 0.

    • ThePARAMETER_NAME andPARAMETER_MODE values areNULL because the return value has no name and the mode does not apply.

  • PARAMETER_MODE

    The mode of the parameter. This value is one ofIN,OUT, orINOUT. For a stored function return value, this value isNULL.

  • PARAMETER_NAME

    The name of the parameter. For a stored function return value, this value isNULL.

  • DATA_TYPE

    The parameter data type.

    TheDATA_TYPE value is the type name only with no other information. TheDTD_IDENTIFIER value contains the type name and possibly other information such as the precision or length.

  • CHARACTER_MAXIMUM_LENGTH

    For string parameters, the maximum length in characters.

  • CHARACTER_OCTET_LENGTH

    For string parameters, the maximum length in bytes.

  • NUMERIC_PRECISION

    For numeric parameters, the numeric precision.

  • NUMERIC_SCALE

    For numeric parameters, the numeric scale.

  • DATETIME_PRECISION

    For temporal parameters, the fractional seconds precision.

  • CHARACTER_SET_NAME

    For character string parameters, the character set name.

  • COLLATION_NAME

    For character string parameters, the collation name.

  • DTD_IDENTIFIER

    The parameter data type.

    TheDATA_TYPE value is the type name only with no other information. TheDTD_IDENTIFIER value contains the type name and possibly other information such as the precision or length.

  • ROUTINE_TYPE

    PROCEDURE for stored procedures,FUNCTION for stored functions.