MySQL Error 3823 – ER_CHECK_CONSTRAINT_CLAUSE_USING_FK_REFER_ACTION_COLUMN

MySQL Error Message

Column ‘%s’ cannot be used in a check constraint ‘%s’:
needed in a foreign key constraint ‘%s’ referential action.

Reason for the Error

ER_CHECK_CONSTRAINT_CLAUSE_USING_FK_REFER_ACTION_COLUMN
was added in 8.0.16.