what is the difference between primary key & foreign key?

Answer Posted / shaik gouse peer

Basic difference betweeen Primary key and foreign key is :

Primary key will not allow "Null values" and "Duplicate
values"

Foreign key will allow "Null values" and "Duplicte values"
and it refers to a primary key in anoter table.

Is This Answer Correct ?    130 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to increment dates by 1 in oracle?

568


What is recovery manager in Oracle?

604


What happens to the indexes if a table is recovered?

587


Does facebook use oracle?

586


How do I find my oracle client driver version?

538






Explain the use of control file?

666


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

558


Why does oracle 9i treat an empty string as null?

546


Why do we use coalesce function in oracle?

645


How to drop an index?

550


How to create a single index for multiple columns?

572


What is difference between sid and service name in oracle?

525


How to loop through a cursor variable?

579


What is an external table?

594


What is oracle in java?

531