what is the difference between primary key & foreign key?

Answer Posted / navane

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 ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between substr & instr functions?

595


how to do daily transactions with out sql* loader control file regesterd in apps?

1221


What is archive log in Oracle?

595


What is a sub query? Describe its types?

540


What are the components of logical database structure in oracle database?

575






How to call a stored function with parameters?

561


how to make an oracle object

1854


How to export data with a field delimiter?

580


What is the database name in oracle?

534


What is a proxy class?

557


Why do we use coalesce function in oracle?

627


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

511


Please explain oracle left join with an example?

583


Explain the difference between sap and oracle?

572


How to write a query with a left outer join in oracle?

603