Difference between primary key and unique key ?

Answer Posted / dinesh

Primary Key:
It wont accept NULL values.
It wont accept Duplication.
Unique Key:
It accepts NULL values.
Foreign Key:
It accepts NULL values.
It accepts Duplication.
Main point is, A Foreign key denotes a Primary key in the another table.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to define a data source name (dsn) in odbc manager?

529


What is connection pool in oracle?

560


How to use an explicit cursor without open statements?

616


how to convert .db (extention) database file into .dmp (extention ) for oracle database ?

2067


how to use select statement as formal parameter in procedure specification?(someone said that using string) ex:-procedure(a in number,select ename from emp ) i am asking syntax like this?

1533






How to connect asp pages to oracle servers?

577


What is blob data type in oracle?

561


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

1833


What is the relation of a user account and a schema in oracle?

592


List the parts of a database trigger.

583


What are the types of trigger in oracle?

577


What is the use of oracle?

560


Explain oracle’s system global area (sga).

626


How to define an explicit cursor in oracle?

603


What is rowid and rownum in oracle?

545