1715
Chapter 19.
INFORMATION_SCHEMA
Tables
Table of Contents
19.1. The
INFORMATION_SCHEMA CHARACTER_SETS
Table .................................................... 1717
19.2. The
INFORMATION_SCHEMA COLLATIONS
Table ........................................................... 1717
19.3. The
INFORMATION_SCHEMA COLLATION_CHARACTER_SET_APPLICABILITY
Table ...... 1718
19.4. The
INFORMATION_SCHEMA COLUMNS
Table ................................................................. 1718
19.5. The
INFORMATION_SCHEMA COLUMN_PRIVILEGES
Table .............................................. 1719
19.6. The
INFORMATION_SCHEMA KEY_COLUMN_USAGE
Table ................................................ 1720
19.7. The
INFORMATION_SCHEMA PROFILING
Table ............................................................. 1721
19.8. The
INFORMATION_SCHEMA ROUTINES
Table ............................................................... 1722
19.9. The
INFORMATION_SCHEMA SCHEMATA
Table ............................................................... 1723
19.10. The
INFORMATION_SCHEMA SCHEMA_PRIVILEGES
Table ............................................ 1723
19.11. The
INFORMATION_SCHEMA STATISTICS
Table .......................................................... 1723
19.12. The
INFORMATION_SCHEMA TABLES
Table ................................................................. 1724
19.13. The
INFORMATION_SCHEMA TABLE_CONSTRAINTS
Table ............................................ 1725
19.14. The
INFORMATION_SCHEMA TABLE_PRIVILEGES
Table .............................................. 1726
19.15. The
INFORMATION_SCHEMA TRIGGERS
Table .............................................................. 1726
19.16. The
INFORMATION_SCHEMA USER_PRIVILEGES
Table ................................................ 1728
19.17. The
INFORMATION_SCHEMA VIEWS
Table ................................................................... 1728
19.18. Extensions to
SHOW
Statements ..................................................................................... 1729
INFORMATION_SCHEMA
provides access to database metadata.
Metadata is data about the data, such as the name of a database or table, the data type of a column,
or access privileges. Other terms that sometimes are used for this information are data dictionary and
system catalog.
INFORMATION_SCHEMA
is the information database, the place that stores information about all the
other databases that the MySQL server maintains. Inside
INFORMATION_SCHEMA
there are several
read-only tables. They are actually views, not base tables, so there are no files associated with them,
and you cannot set triggers on them. Also, there is no database directory with that name.
Although you can select
INFORMATION_SCHEMA
as the default database with a
USE
statement, you
can only read the contents of tables, not perform
INSERT
,
UPDATE
, or
DELETE
operations on them.
Here is an example of a statement that retrieves information from
INFORMATION_SCHEMA
:
mysql>
SELECT table_name, table_type, engine
->
FROM information_schema.tables
->
WHERE table_schema = 'db5'
->
ORDER BY table_name DESC;
+------------+------------+--------+
| table_name | table_type | engine |
+------------+------------+--------+
| v56 | VIEW | NULL |
| v3 | VIEW | NULL |
| v2 | VIEW | NULL |
| v | VIEW | NULL |
| tables | BASE TABLE | MyISAM |
| t7 | BASE TABLE | MyISAM |
| t3 | BASE TABLE | MyISAM |
| t2 | BASE TABLE | MyISAM |
| t | BASE TABLE | MyISAM |
| pk | BASE TABLE | InnoDB |
| loop | BASE TABLE | MyISAM |
| kurs | BASE TABLE | MyISAM |
| k | BASE TABLE | MyISAM |
| into | BASE TABLE | MyISAM |
| goto | BASE TABLE | MyISAM |
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...