INNODB_TEMP_TABLE_INFO 表提供有关用户创建的、在 InnoDB 实例中处于活动状态的 InnoDB 临时表的信息。它不提供优化器使用的内部 InnoDB 临时表的信息。INNODB_TEMP_TABLE_INFO 表在首次查询时创建,仅存在于内存中,并不会持久化到磁盘。The INNODB_TEMP_TABLE_INFO table
provides information about user-created InnoDB
temporary tables that are active in an InnoDB
instance. It does not provide information about internal
InnoDB temporary tables used by the optimizer.
The INNODB_TEMP_TABLE_INFO table is
created when first queried, exists only in memory, and is not
persisted to disk.
有关使用信息和示例,请参见 第 17.15.7 节,“InnoDB INFORMATION_SCHEMA 临时表信息表”。For usage information and examples, see Section 17.15.7, “InnoDB INFORMATION_SCHEMA Temporary Table Info Table”.
INNODB_TEMP_TABLE_INFO 表具有以下列:The INNODB_TEMP_TABLE_INFO table has
these columns:
TABLE_ID临时表的表 ID。The table ID of the temporary table.
NAMENAME临时表的名称。The name of the temporary table.
N_COLS临时表中的列数。此数量包括
InnoDB创建的三列隐藏列(DB_ROW_ID、DB_TRX_ID和DB_ROLL_PTR)。The number of columns in the temporary table. The number includes three hidden columns created byInnoDB(DB_ROW_ID,DB_TRX_ID, andDB_ROLL_PTR).SPACE临时表所在的临时表空间 ID。The ID of the temporary tablespace where the temporary table resides.
示例Example
mysql>CREATE TEMPORARY TABLE t1 (c1 INT PRIMARY KEY) ENGINE=INNODB;mysql>SELECT * FROM INFORMATION_SCHEMA.INNODB_TEMP_TABLE_INFO\G*************************** 1. row *************************** TABLE_ID: 97 NAME: #sql8c88_43_0 N_COLS: 4 SPACE: 76
注释Notes
此表主要用于专家级监控。This table is useful primarily for expert-level monitoring.
你必须拥有
PROCESS权限才能查询此表。You must have thePROCESSprivilege to query this table.使用
INFORMATION_SCHEMACOLUMNS表或SHOW COLUMNS语句查看关于此表列的更多信息,包括数据类型和默认值。Use theINFORMATION_SCHEMACOLUMNStable or theSHOW COLUMNSstatement to view additional information about the columns of this table, including data types and default values.