Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 225459

A type of integrity constraint used in a RDBMS platform to ensure that a value in a column matches one of a range of key values from another table.

4 votes
4 answers
25k views

Is it necessary for a foreign key to be a primary key in another table? Why?

I am new to database implementation. I want to know if it is necessary for a foreign key to be primary key of another table. Foreign key is not unique - it may have duplicate entries. If it must be pr …
Manii's user avatar
  • 143