what is the difference between primary key & foreign key?

Answer Posted / mathiyarasan

Primary is unique one. Each table has only one primary key.
But not allow null values.

Foreign key is opposite of primary. It is reference of
primary key from another table. It allow Null value. Each
table can have more than one foreign key.

Foreign key is used to link one to another table.

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How different is ms access and oracle?

547


How do I limit the number of rows returned by an oracle query after ordering?

640


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

570


Compare and contrast between sql and sql server and explain its various functions?

540


There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??

1614






ABOUT IDENTITY?

1567


What is bulk collect in oracle?

557


Explain an extent?

661


Will you be able to store pictures in the database?

642


What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.

653


Give the advantages and disadvantages of clusters.

579


What is difference between truncate and delete?

563


How many file formats are supported to export data?

661


Why does for update in oracle 8 cause an ora-01002 error?

551


What is recovery manager(rman) backup in Oracle?

629