Yesterday, I set out a little quiz about the TABLE_CONSTRAINTS
table in the
MySQL information_schema
. The
task was:
- Specify a minimal set of columns of the information_schema.TABLE_CONSTRAINTS table that is sufficient to reliably identify a single row in the information_schema.TABLE_CONSTRAINTS table.
- Argue why these columns are necessary and sufficient to identify a row, and why a smaller set of columns does not exist
Short Answer
For MySQL there are two such column sets:
-
-
CONSTRAINT_SCHEMA
, …