Hi,
I am working on an assignment where I am supposed to find all of the tables in information_schema of a "blank" database. I can do this in either MySQL or PostgreSQL. I chose MySQL. So, I have identified all of the tables:
- CHARACTER_SETS
- COLLATIONS
- COLLATION_CHARACTER_SET_APPLICABILITY
- COLUMNS
- COLUMN_PRIVILEGES
- INDEX_STATISTICS
- KEY_COLUMN_USAGE
- PROFILING
- ROUTINES
- SCHEMATA
- SCHEMA_PRIVILEGES
- STATISTICS
- TABLES
- TABLE_CONSTRAINTS
- TABLE_PRIVILEGES
- TABLE_STATISTICS
- TRIGGERS
- USER_PRIVILEGES
- VIEWS
Now, I have to find details about those tables. For example, primary key definitions, table columns, foreign keys, trigger actions, etc.
The problem that I am running into, however, is that none of these tables list any primary keys or foreign keys or constraints, etc.
Am I misinterpreting? Or can this information be found anywhere? I'd appreciate any help.
Thanks!