Rechercher dans le manuel MySQL
25.39.8 The INFORMATION_SCHEMA INNODB_COLUMNS Table
The INNODB_COLUMNS table provides
metadata about InnoDB table columns.
For related usage information and examples, see Section 15.14.3, “InnoDB INFORMATION_SCHEMA Schema Object Tables”.
The INNODB_COLUMNS table has these
columns:
TABLE_IDAn identifier representing the table associated with the column; the same value as
INNODB_TABLES.TABLE_ID.NAMEThe name of the column. These names can be uppercase or lowercase depending on the
lower_case_table_namessetting. There are no special system-reserved names for columns.POSThe ordinal position of the column within the table, starting from 0 and incrementing sequentially. When a column is dropped, the remaining columns are reordered so that the sequence has no gaps. The
POSvalue for a virtual generated column encodes the column sequence number and ordinal position of the column. For more information, see thePOScolumn description in Section 25.39.30, “The INFORMATION_SCHEMA INNODB_VIRTUAL Table”.MTYPEStands for “main type”. A numeric identifier for the column type. 1 =
VARCHAR, 2 =CHAR, 3 =FIXBINARY, 4 =BINARY, 5 =BLOB, 6 =INT, 7 =SYS_CHILD, 8 =SYS, 9 =FLOAT, 10 =DOUBLE, 11 =DECIMAL, 12 =VARMYSQL, 13 =MYSQL, 14 =GEOMETRY.PRTYPEThe
InnoDB“precise type”, a binary value with bits representing MySQL data type, character set code, and nullability.LENThe column length, for example 4 for
INTand 8 forBIGINT. For character columns in multibyte character sets, this length value is the maximum length in bytes needed to represent a definition such asVARCHAR(; that is, it might beN)2*,N3*, and so on depending on the character encoding.NHAS_DEFAULTA boolean value indicating whether a column that was added instantly using
ALTER TABLE ... ADD COLUMNwithALGORITHM=INSTANThas a default value. All columns added instantly have a default value, which makes this column an indicator of whether the column was added instantly.DEFAULT_VALUEThe initial default value of a column that was added instantly using
ALTER TABLE ... ADD COLUMNwithALGORITHM=INSTANT. If the default value isNULLor was not specified, this column reportsNULL. An explicitly specified non-NULLdefault value is shown in an internal binary format. Subsequent modifications of the column default value do not change the value reported by this column.
Example
- *************************** 1. row ***************************
- TABLE_ID: 71
- NAME: col1
- POS: 0
- MTYPE: 6
- PRTYPE: 1027
- LEN: 4
- HAS_DEFAULT: 0
- DEFAULT_VALUE: NULL
- *************************** 2. row ***************************
- TABLE_ID: 71
- NAME: col2
- POS: 1
- MTYPE: 2
- PRTYPE: 524542
- LEN: 10
- HAS_DEFAULT: 0
- DEFAULT_VALUE: NULL
- *************************** 3. row ***************************
- TABLE_ID: 71
- NAME: col3
- POS: 2
- MTYPE: 1
- PRTYPE: 524303
- LEN: 10
- HAS_DEFAULT: 0
- DEFAULT_VALUE: NULL
Notes
You must have the
PROCESSprivilege to query this table.Use the
INFORMATION_SCHEMACOLUMNStable or theSHOW COLUMNSstatement to view additional information about the columns of this table, including data types and default values.
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 26/06/2006, zuletzt geändert 26/10/2018
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/mysql-rf-innodb-columns-table.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.