Catalog
Full catalog
Resources
Blog
University
Guide
Bootcamps
Provided by
JetBrains Academy
Creators of the most popular IDEs:
IntelliJ IDEA, PyCharm
& others
Authors of
Kotlin
,
Google's preferred language
for Android
More than
11.4 million developers and 300,000 companies worldwide
use JetBrains IDEs to create their products
Pricing
For Business
Sign in
Start for free
Computer science
Fundamentals
SQL and Databases
DBMS
MySQL
Data Definition Language
FOREIGN KEY constraint
Suggested problems
Delete the foreign key
Correct statements
Let's see
Referential actions
Also know as
Pets
Link the tables
No more keys
Application
Teachers
Skip topic
Theory
Referential actions
Report a typo
Match the referential actions with what they do.
Match the items from left and right columns
Get unstuck
Comments
Get help from the community
Code snippets
See topic-related syntax examples
CASCADE
SET NULL
RESTRICT
SET DEFAULT
Sets the foreign key in the child table to default value.
Sets the foreign key in the child table to NULL.
Rejects the delete or update operation for the parent table.
Automatically deletes or updates the matching rows in the child table.
227
learners liked this problem.
1
didn't like it.
What about you?
___
Create a free account to access the full topic
Sign up with Google
Sign up with GitHub
Sign up with JetBrains Account
Sign up with email
By continuing, you agree to the
JetBrains Academy Terms of Service
as well as
Hyperskill Terms of Service and Privacy Policy
.
Comments (3)
Hints (1)
Useful links (2)
Show discussion