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 oracle differences between nvl and coalesce

514


If any one has information regarding interview of NIC (National Informatics Centre),it would be of great help...

1729


Is java required for oracle client?

548


How to create a server parameter file?

571


List the parts of a database trigger.

576






Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1359


i wrote a pl/sql procedure. it must run every sunday 4.40 How can i schedule it with the help of dbms_jobs (or another other procedure with out creating bat file,exe file)

1806


What are dml statements in oracle?

616


Can you have more than one content canvas view attached with a window ?

1815


How to synchronize 2 schema's objects?

1688


Explain an integrity constrains?

696


Explain the use of grant option in imp command.

576


How to login to the server without an instance?

616


What is truncate oracle?

529


Typically, where is the conventional directory structure chosen for Oracle binaries to reside?

1582