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

What is the scope of a local variable?

585


How to pass a parameter to a cursor in oracle?

595


What are the types of trigger in oracle?

573


What is logical backup in oracle?

578


Differentiate between function and procedure in oracle.

561






How can I see all tables in oracle?

542


An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1619


Explain an exception?

566


What are oracle functions?

553


How to lock and unlock a user account in oracle?

612


How to store pictures on to the database?

530


Give the advantages and disadvantages of clusters.

576


Is there an oracle sql query that aggregates multiple rows into one row?

542


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

1807


What is system global area (sga) in oracle?

575