Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does a FOREIGN KEY constraint enforce?

  1. A That values are unique across the table
  2. B That a column value exists in the referenced table's key column
  3. C That the column cannot be NULL
  4. D That the column is indexed as primary
Answer

That a column value exists in the referenced table's key column

Foreign keys enforce referential integrity. They require InnoDB and are silently ignored by MyISAM.

All MySQL MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as