what is the difference between primary key & foreign key?

Answer Posted / hardik patel

primary key is used to identify a row and it doesnot allow
null values. It avoids duplication of rows.

whereas foreign key refers to a column or combination of
columns included in the defenition of referential integrity.

Is This Answer Correct ?    65 Yes 20 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to rollback the current transaction in oracle?

532


How to retrieve data from an cursor to a record?

556


Explain rename?

541


How do I find my oracle client driver version?

517


How to run queries on external tables?

557






Explain what are the different type of segments?

568


How to list all tables in your schema?

595


Explain integrity constraints?

654


How to view existing locks on the database?

539


Explain the different normalization forms?

582


What is ceil and floor in oracle?

565


What is a nested table and how is it different from a normal table?

566


is there a tool to trace queries, like profiler for sql server?

583


What is the difference between substr & instr functions?

590


What is concurrency in oracle?

533