what is the difference between primary key & foreign key?

Answer Posted / afzaal

primary key is a constraint key that can not contain a null
or duplicate values.
foriegn key is a reference key ,before referencing the
foriegn key parent table field or fields must have primary
key.If u can try to insert a value in referencing field,new
record that must contain parent field.

Is This Answer Correct ?    22 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

6. Display the client name and order date for all orders using the traditional method.

1753


How to change user password in oracle?

606


How to drop a stored procedure in oracle?

592


Describe the types of sub query?

556


Explain the use of analyse option in exp command.

590






What is a user account in oracle?

631


How can we delete duplicate rows in a table?

568


How to drop a tablespace?

574


What are ddl statements in oracle?

592


How to store only time; not date and time?

557


What is a cursor in oracle?

652


What is oracle instant client?

566


Explain the difference between a procedure and a function? What do you understand by those terms?

624


You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?

1448


How will you differentiate between varchar & varchar2?

592