Rechercher dans le manuel MySQL
27.4.3.24 The schema_auto_increment_columns View
This view indicates which tables have
AUTO_INCREMENT
columns and provides
information about those columns, such as the current and
maximum column values and the usage ratio (ratio of used to
possible values). By default, rows are sorted by descending
usage ratio and maximum column value.
Tables in these schemas are excluded from view output:
mysql
, sys
,
INFORMATION_SCHEMA
,
performance_schema
.
The
schema_auto_increment_columns
view has these columns:
table_schema
The schema that contains the table.
table_name
The table that contains the
AUTO_INCREMENT
column.column_name
The name of the
AUTO_INCREMENT
column.data_type
The data type of the column.
column_type
The column type of the column, which is the data type plus possibly other information. For example, for a column with a
bigint(20) unsigned
column type, the data type is justbigint
.is_signed
Whether the column type is signed.
is_unsigned
Whether the column type is unsigned.
max_value
The maximum permitted value for the column.
auto_increment
The current
AUTO_INCREMENT
value for the column.auto_increment_ratio
The ratio of used to permitted values for the column. This indicates how much of the sequence of values is “used up.”
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-sys-schema-auto-increment-columns.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.