what is the difference between primary key & foreign key?

Answer Posted / shaik gouse peer

Basic difference betweeen Primary key and foreign key is :

Primary key will not allow "Null values" and "Duplicate
values"

Foreign key will allow "Null values" and "Duplicte values"
and it refers to a primary key in anoter table.

Is This Answer Correct ?    130 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between count (*), count (expression), count (distinct expression)?

547


How to assign query results to variables?

582


Please send me Informatica 8.1 certification dumps, my mail id mona85gupta@gmail.com

1432


What are set operators?

642


What are the different pseudo commands? Explain in general?

534






What is a select query statement in oracle?

539


What is Data Dictionary Cache in Oracle?

649


How to drop a tablespace?

556


What is bulk copy or bcp in oracle?

598


What is oracle server autotrace in oracle?

601


How to use select statement to count the number of rows in oracle?

541


Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.

851


What is an oracle data file?

602


How to define an anonymous block?

610


What is the difference between substr and instr?

511