what is the difference between primary key & foreign key?

Answer Posted / simbu

primary key is a keyword .that refers to the unique value
in the particular record.it cant have null

foreign key is always keyword that refers primary key.it has
null value.its refers to another table

Is This Answer Correct ?    34 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

You have found corruption in a tablespace that contains static tables that are part of a database that is in NOARCHIVE log mode. How would you restore the tablespace without losing new data in the other tablespaces?

1453


while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511

3865


Explain the use of control file?

650


Is a rollback possible to any savepoint?

556


Difference between cartesian join and cross join?

540






What are the predefined tablespaces in a database?

554


How to view the tablespaces in the current database?

555


What is connection pool in oracle?

556


How to write date and time literals in oracle?

555


Explain the use of owner option in exp command.

567


Explain coalesce function?

623


What is a read only transaction in oracle?

591


Where is the export dump file located?

567


How to end the current transaction in oracle?

552


What is control file used for?

600