foreign_key_checks

2023-12-25 08:49:41  Updated

Applicability

This variable is valid only in the MySQL mode.

foreign_key_checks specifies whether to enable FOREIGN KEY constraint check for DML or DDL statements.

Attribute Description
Type Boolean
Default value 1
Value range
  • 0: disables FOREIGN KEY constraint check.
  • 1: enables FOREIGN KEY constraint check.
  • Applicable scope
  • Global
  • Session
  • Involved in serialization Yes

    Contact Us