Documentation Home
MySQL 8.4 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 39.8Mb
PDF (A4) - 39.9Mb
Man Pages (TGZ) - 257.9Kb
Man Pages (Zip) - 364.9Kb
Info (Gzip) - 4.0Mb
Info (Zip) - 4.0Mb


MySQL 8.4 Reference Manual  /  ...  /  The schema_auto_increment_columns View

30.4.3.24 schema_auto_increment_columns 视图

该视图显示了哪些表具有AUTO_INCREMENT列,并提供了关于这些列的信息,例如当前和最大列值,以及使用率(使用的值与可能的值的比率)。默认情况下,行按降序的使用率和最大列值排序。

这些架构中的表除外:mysqlsysINFORMATION_SCHEMAperformance_schema

The schema_auto_increment_columns 视图具有这些列:

  • table_schema

    包含表的架构。

  • table_name

    包含AUTO_INCREMENT列的表。

  • column_name

    AUTO_INCREMENT 列的名称。

  • data_type

    列的数据类型。

  • column_type

    列的类型,包括数据类型和可能的其他信息。例如,对于一个bigint(20) unsigned类型的列,数据类型只是bigint

  • is_signed

    是否是有符号的类型。

  • is_unsigned

    是否是无符号的类型。

  • max_value

    列的最大允许值。

  • auto_increment

    当前AUTO_INCREMENT值。

  • auto_increment_ratio

    列的使用率,表示序列值的使用情况。