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

How do I spool to a csv formatted file using sqlplus?

550


Why do we need integrity constraints in a database?

588


what are steps for interface? where is exchange rate defined in which table?

1501


How index is implemented in oracle database?

598


Can you tell me how to add new column in existing views?how?How is possible?

942






What is background process in Oracle?

626


Explain integrity constraints?

669


What is the order of defining local variables and sub procedures/functions?

602


what's query optimization and without use of IN AND Exist can we get another way data from query

1672


Can the query output be sorted by multiple columns in oracle?

574


Describe varray?

592


What are the different pseudo commands? Explain in general?

541


How to get a list of all background sessions in the database?

542


How to export your connection information to a file?

599


What are the oracle differences between nvl and coalesce

518