Documentation Home
MySQL Information Schema
Related Documentation Download this Excerpt
PDF (US Ltr) - 0.7Mb
PDF (A4) - 0.7Mb


MySQL Information Schema  /  INFORMATION_SCHEMA General Tables  /  The INFORMATION_SCHEMA COLUMN_STATISTICS Table

4.11 The INFORMATION_SCHEMA COLUMN_STATISTICS Table

The COLUMN_STATISTICS table provides access to histogram statistics for column values.

For information about histogram statistics, see Optimizer Statistics, and ANALYZE TABLE Statement.

You can see information only for columns for which you have some privilege.

The COLUMN_STATISTICS table has these columns:

  • SCHEMA_NAME

    The names of the schema for which the statistics apply.

  • TABLE_NAME

    The names of the column for which the statistics apply.

  • COLUMN_NAME

    The names of the column for which the statistics apply.

  • HISTOGRAM

    A JSON object describing the column statistics, stored as a histogram.