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

Is the After report trigger fired if the report execution fails ?

2414


What is the difference between formal parameters and actual parameters?

555


How to turn on or off recycle bin for the instance?

617


What are the advantages of oracle 12c?

565


How to add a new column to an existing table in oracle?

597






What is oracle rowcount?

589


Explain what are synonyms used for?

622


Explain the use of full option in exp command.

599


What is the difference between the Oracle ODBC driver and a Microsoft ODBC (Open Database Connectivity) Driver?

626


Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?

1575


How to call a sub procedure?

576


What is MTTR advisor in Oracle?

618


What is the relationship among database, tablespace and data file?

552


What are the restrictions on external table columns?

555


How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

558