Q: Which type of data constraint in MySQL ensures that a column's value references a valid primary key value in another table?
-
A
PRIMARY KEY
-
B
UNIQUE
-
C
FOREIGN KEY
-
D
INDEX
C
Answer:
C
Explanation:
The FOREIGN KEY constraint in MySQL ensures that a column's value references a valid primary key value in another table. It establishes a relationship between two tables based on their key values.
Related Topic:
Share Above MCQ