In MySQL, what is the purpose of the FOREIGN KEY constraint?
A. Ensures unique values in a column
B. Establishes a link between two tables
C. Limits the number of rows returned
D. Sets a default value for a column
FOREIGN KEY establishes a link between two tables based on a column.