what is the difference between primary key & foreign key?

Answer Posted / vaziuddin shaik

PRIMARY KEY
-------------
Primary key is a column in a table which is having unique
values......and it does not contain null values and
duplicate values...........

FOREIGN KEY
-------------
Foreign key is a column in a table which act as reference to
another table.....and it may contain null and duplicate
values.....(or)it may not contain null and duplicate
values...........

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the maximum number of triggers that can be applied to a single table?

555


What is the difference between a user and a schema in oracle?

556


What are the four Oracle system processes that must always be up and running for the database to be useable?

589


What is the difference between primary key and unique key and foreign key in oracle?

544


List the various oracle database objects?

597






Explain what are the advantages of views?

607


How to create a new table in your schema?

605


Explain a data segment?

646


How to view existing locks on the database?

543


What is the order of defining local variables and sub procedures/functions?

597


Explain the use of record option in exp command.

532


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

537


How to create a new table in oracle?

589


How oracle handles dead locks?

600


How do I manually uninstall oracle client?

514