How to set foreign key constraints in MySQL?

Viewed 18

How to set foreign key constraints in MySQL?

1 Answers

Cancel foreign key constraint:
SET FOREIGN_KEY_CHECKS=0

Enable foreign key constraint:
SET FOREIGN_KEY_CHECKS=1

Related Questions

Powered by Answer - the open-source software that powers Q&A communities.
Made with love © 2025 Womay-Developer Learning and Sharing Community.