Oracle 5.0 Reference Manual page 1315

Table of Contents

Advertisement

InnoDB
COLUMNS: par_id: DATA_INT len 4 prec 0;
fname: DATA_CHAR prtype 524542 len 20 prec 0;
lname: DATA_CHAR prtype 524542 len 20 prec 0;
DB_ROW_ID: DATA_SYS prtype 256 len 6 prec 0;
DB_TRX_ID: DATA_SYS prtype 257 len 6 prec 0;
DB_ROLL_PTR: DATA_SYS prtype 258 len 7 prec 0;
INDEX: name PRIMARY, id 0 15, fields 1/5, type 3
root page 50, appr.key vals 299, leaf pages 2, size pages 3
FIELDS:
par_id DB_TRX_ID DB_ROLL_PTR fname lname
INDEX: name lname, id 0 16, fields 2/3, type 2
root page 51, appr.key vals 300, leaf pages 1, size pages 1
FIELDS:
lname fname par_id
FOREIGN KEY CONSTRAINT test/child_ibfk_1: test/child ( par_id )
REFERENCES test/parent ( par_id )
-----------------------------------
END OF INNODB TABLE MONITOR OUTPUT
==================================
For each table, Table Monitor output contains a section that displays general information about the
table and specific information about its columns, indexes, and foreign keys.
The general information for each table includes the table name (in
for internal tables), its ID, the number of columns and indexes, and an approximate row count.
The
part of a table section lists each column in the table. Information for each column
COLUMNS
indicates its name and data type characteristics. Some internal columns are added by InnoDB, such
as
(row ID),
DB_ROW_ID
undo data).
• DATA_xxx: These symbols indicate the data type. There may be multiple
given column.
• prtype: The column's "precise" type. This field includes information such as the column data type,
character set code, nullability, signedness, and whether it is a binary string. This field is described in
the
innobase/include/data0type.h
• len: The column length in bytes.
• prec: The precision of the type.
Each
part of the table section provides the name and characteristics of one table index:
INDEX
• name: The index name. If the name is PRIMARY, the index is a primary key. If the name is
GEN_CLUST_INDEX, the index is the clustered index that is created automatically if the table
definition doesn't include a primary key or
and Secondary
Indexes".
• id: The index ID.
• fields: The number of fields in the index, as a value in
is the number of user-defined columns; that is, the number of columns you would see in the
m
index definition in a
is the total number of index columns, including those added internally. For the clustered index,
n
the total includes the other columns in the table definition, plus any columns added internally. For
a secondary index, the total includes the columns from the primary key that are not part of the
secondary index.
• type: The index type. This is a bit field. For example, 1 indicates a clustered index and 2 indicates a
unique index, so a clustered index (which always contains unique values), will have a
3. An index with a
type
innobase/include/dict0mem.h
page: The index root page number.
root
Performance Tuning and Troubleshooting
(transaction ID), and
DB_TRX_ID
source file.
non-NULL
statement.
CREATE TABLE
value of 0 is neither clustered nor unique. The flag values are defined in the
source file.
1295
db_name/tbl_name
(a pointer to the rollback/
DB_ROLL_PTR
DATA_xxx
unique index. See
Section 14.2.9.1, "Clustered
format:
m/n
format except
symbols for a
value of
type

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents