SyntaxFix
Write A Post
Hire A Developer
Questions
From the official MySQL documentation at https://dev.mysql.com/doc/refman/8.0/en/create-table-foreign-keys.html:
MySQL requires indexes on foreign keys and referenced keys so that foreign key checks can be fast and not require a table scan.