what is the difference between primary key & foreign key?

Answer Posted / raghu

In the context of relational databases, a foreign key is a
referential constraint between two tables.[1] The foreign
key identifies a column or a set of columns in one
(referencing) table that refers to a column or set of
columns in another (referenced) table. The columns in the
referencing table must form a primary key or unique key.

Is This Answer Correct ?    58 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is raw datatype in oracle?

595


Difference between hot backup vs. Cold backup?

615


Does oracle partitioning improve performance?

563


What is the difference between PFILE and SPFILE in Oracle?

586


how to join query for one source type is oracle another source type is sql server ?

2001






How do I find my oracle client driver version?

538


What happens if you use a wrong connect identifier?

515


How to run create database statement again?

633


What to do if the binary spfile is wrong for the default instance?

571


Explain integrity constraints?

686


What are the predefined tablespaces in a database?

560


Give the constructs of a package, function or a procedure.

556


what is port in oracle? how is it related to database application.

1446


Explain constraining triggers.

612


How to grant create session privilege to a user in oracle?

576