What is FOREIGN KEY?
Answers
Answered by
2
Answer:
A foreign key is a column is called foreign key.
Answered by
1
Foreign key is a value in the database which value must match with the primary key value column of another table .
Explanation:
- The main objective of FOREIGN Key is used to connecting the two tables and fetching the record by matching there value with the primary key value column of another table .
- We can used the FOREIGN KEY keyword for declaring any FOREIGN key value also there must be primary key value column is declared in other table
- For example
create table employ
(
PRIMARY KEY (empid),
FOREIGN KEY (stu_roll) REFERENCES student(stu_roll)
);
we used REFERENCES keyword for matching the value.
Learn more :
https://brainly.in/question/7796458
Similar questions