23.4. The INFORMATION_SCHEMA STATISTICS
Table
The STATISTICS
table provides information about
table indexes.
Notes:
-
There is no standard table for indexes. The preceding list is
similar to what SQL Server 2000 returns for
sp_statistics
, except that we replaced the
name QUALIFIER
with
CATALOG
and we replaced the name
OWNER
with SCHEMA
.
Clearly, the preceding table and the output from SHOW
INDEX
are derived from the same parent. So the
correlation is already close.
The following statements are equivalent:
SELECT * FROM INFORMATION_SCHEMA.STATISTICS
WHERE table_name = 'tbl_name
'
[AND table_schema = 'db_name
']
SHOW INDEX
FROM tbl_name
[FROM db_name
]