what is the difference between primary key & foreign key?

Answer Posted / deepa

Primary key is a keyword.
It should not have null value and duplicate value.
We can have only one primary key in a table and the value
should be unique.

Foreign key is a keyword.
It can have null value and duplicate value.
We can have more than one foreign key for a table and this
froeign key table references the primary key table.

Is This Answer Correct ?    22 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of modules in oracle forms?

564


what is the difference between substr and instr function in oracle?

588


Please explain drop constraint oracle?

631


What happens if the imported table already exists?

549


How to define a procedure inside another procedure?

549






How can you use check constraints for self referential integrity?

526


What is an oracle function?

602


I have a table called 'test' on source and target with same name, structure and data type but in a different column order. How can you setup replication for this table?

628


How do you tell what your machine name is and what is its IP address?

1516


How to synchronize 2 schema's objects?

1690


Explain the difference between a procedure and a function?

561


What are the limitations oracle database 10g xe?

572


What is a table index?

565


What happens to the current transaction if the session is ended?

529


What is the difference between post-database commit and post-form commit?

517