October 2022
Intermediate to advanced
380 pages
9h 35m
English
Success does not consist in never making mistakes but in never making the same one a second time.
All implementations of SQL have enhancements and limitations, so there are a few types of foreign key mistakes that apply specifically to MySQL. This chapter is a collection of mini-antipatterns about those types of foreign key constraints, based on questions asked frequently by developers on public internet forums.
Each incorrect example is followed by the error returned by MySQL 8.0, and then the correct way to implement the foreign key.
Read now
Unlock full access