MySQL 8.0 Reference Manual
MySQL 8.0 Release Notes
As of MySQL 8.0.16, CREATE TABLE
permits the core features of table and column
CHECK constraints, and the
CHECK_CONSTRAINTS table provides
information about these constraints.
The CHECK_CONSTRAINTS table has these
columns:
CONSTRAINT_CATALOGThe name of the catalog to which the constraint belongs. This value is always
def.CONSTRAINT_SCHEMAThe name of the schema (database) to which the constraint belongs.
CONSTRAINT_NAMEThe name of the constraint.
CHECK_CLAUSEThe expression that specifies the constraint condition.