Database MCQS - QUESTION DETAILS

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.

Similar Questions

Which SQL statement is used to remove a table from a database?






Which SQL Server statement is used to remove all records from a table and reset identity seed?






Which MySQL statement is used to grant all privileges to a user?






What is the purpose of the SQL LEFT JOIN clause?






In SQL Server, what is the purpose of the SEQUENCE object?






In SQL Server, what is the purpose of the MERGE statement?






What is the purpose of the SQL Server XML INDEX option?






What is the default sorting order of the ORDER BY clause in SQL?






Which SQL Server statement is used to grant specific privileges to a user?






What is the purpose of the SQL ROLLBACK statement?