What is a foreign key in MariaDB?
a) A key that encrypts data
b) A key used for caching
c) A key that links data between two tables
d) A key used for indexing
Answer:
c) A key that links data between two tables
Explanation:
A foreign key is used to establish a relationship between two tables by linking the primary key of one table to a field in another table.