October 2022
Intermediate to advanced
380 pages
9h 35m
English
Many of life’s failures are people who did not realize how close they were to success when they gave up.
Foreign keys are part of the ANSI/ISO SQL standard, so many types of foreign key mistakes will be mistakes regardless of the specific brand of SQL database you use. 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. The error message may be different in another version of MySQL, or in other brands of SQL databases. Following the description of the error and other consequences of the ...
Read now
Unlock full access