Information Schema INNODB_SYS_COLUMNS Table
The Information Schema INNODB_SYS_COLUMNS
table contains information about InnoDB fields.
The PROCESS
privilege is required to view the table.
It has the following columns:
Column
Description
TABLE_ID
Table identifier, matching the value from INNODB_SYS_TABLES.TABLE_ID.
NAME
Column name.
POS
Ordinal position of the column in the table, starting from 0. This value is adjusted when columns are added or removed.
MTYPE
Numeric column type identifier, (see the table below for an explanation of its values).
PRTYPE
Binary value of the InnoDB precise type, representing the data type, character set code and nullability.
LEN
Column length. For multi-byte character sets, represents the length in bytes.
The column MTYPE
uses a numeric column type identifier, which has the following values:
Example
SELECT * FROM information_schema.INNODB_SYS_COLUMNS LIMIT 3\G
*************************** 1. row ***************************
TABLE_ID: 11
NAME: ID
POS: 0
MTYPE: 1
PRTYPE: 524292
LEN: 0
*************************** 2. row ***************************
TABLE_ID: 11
NAME: FOR_NAME
POS: 0
MTYPE: 1
PRTYPE: 524292
LEN: 0
*************************** 3. row ***************************
TABLE_ID: 11
NAME: REF_NAME
POS: 0
MTYPE: 1
PRTYPE: 524292
LEN: 0
3 rows in set (0.00 sec)
This page is licensed: CC BY-SA / Gnu FDL
Last updated
Was this helpful?