what is the difference between primary key & foreign key?

Answer Posted / anand

Primary key is used to identify a row in a table 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 ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to change user password in oracle?

603


How to add a new column to an existing table with a default value?

542


Hi friends can u send the oracle 9i full version download link?????????????? please reply ?

1440


hey friends, What are the steps I can do to transfer the database from Microsoft Access 2003 to oracle10g (or SQL) Best regards

1562


what is IDE,DMV in sql server?

2243






Explain the dml?

592


Can a parameter be passed to a cursor?

598


What are the execution control statements in oracle?

600


How to select an oracle system id (sid)?

584


Which dictionary view(s) would you first look at to understand or get a high-level idea of a given Advanced Replication environment?

1479


what is reindexing?

1175


What is the best way to do multi-row insert in oracle?

561


When do I need to use a semicolon vs a slash in oracle sql?

590


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2724


What is an oracle cursor variable?

607