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

What is the difference between sharding and replication?

475


material view and view disadvantages?

633


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

1493


How can I convert single byte kana characters into multi byte kana characters and vice-versa.

1933


How to use windows user to connect to the server?

530






How to use "startup" command to start default instance?

542


various types of hints and their usage

2131


What is system tablespace?

630


What is different types of joins?

570


What to do if the binary spfile is wrong for the default instance?

559


What is the use of aggregate functions in oracle?

579


How do I use unicode codesets with the weblogic jdriver for oracle driver?

549


When system tablespace is created?

603


query optmization techniques and quwry analyser+projects+ppts

1925


How would you go about verifying the network name that the local_listener is currently using?

1602