what is the difference between primary key & foreign key?

Answer Posted / mathiyarasan

Primary is unique one. Each table has only one primary key.
But not allow null values.

Foreign key is opposite of primary. It is reference of
primary key from another table. It allow Null value. Each
table can have more than one foreign key.

Foreign key is used to link one to another 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 is the difference between data migration and production migration.

1805


How to create an oracle testing table?

590


How to use an explicit cursor without open statements?

612


Explain parameter file in oracle.

576


What do you understand by a database object?

582






What is ceil and floor in oracle?

572


Explain how are indexes update?

619


What privilege is needed for a user to insert rows to tables in another schema?

560


What is sharded cluster?

518


What is a lookup table in oracle?

541


Can objects of the same schema reside in different tablespace?

584


what are the default admin accounts in Oracle 10g ?

506


How do I call oracle stored procedures that take no parameters?

562


What is a snapshot in oracle database?

568


What types of joins are used in writing subqueries?

563