what is the difference between primary key & foreign key?

Answer Posted / aarti

Primary Key : It is a unique key of the table.Unique for
each record in the table(e.g ID).

Foreign Key : When a primary key is used as a reference key
in another table then it is called as a foreign key.It is
used to link two tables.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What happens if the update subquery returns multiple rows?

606


Who developed oracle & when?

568


Why do we need integrity constraints in a database?

584


Explain the difference between replace() and translate() functions in oracle?

576


How to do a full database export?

631






Explain constraining triggers.

593


What is execute immediate in oracle?

546


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

585


What is a cursor in oracle?

644


What is define in oracle?

564


How to get a list of all background sessions in the database?

539


What is clustered table in Oracle?

641


How to sort output in descending order in oracle?

574


How to fetch the row which has the max value for a column?

538


How do you bind variables in oracle?

542