Difference between primary key and unique key ?

Answer Posted / hemendra singh chaudhary

In the Table a primary key constraint column cannot holding
the null values.whereas unique constraint colum can holding
the null values.
Ex.|--------------------|
| ID(P) | Name(U) | #ID(P) ->It's a Primary Key
|--------------------| * Its a Not Null
| 1 | Hemendra | * A table Contain 1 Primary
| 2 | Neeraj | Key.
| 3 | PremJe | #Name(U)->It's a Unique Key
|NotNull |canbe Null| * Its can contain Null Value
|--------------------| * A table Contain more
than 1 unique Key.

Please Check the Radio Button..........
******************Gud Luck********************

Is This Answer Correct ?    45 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create a new table by selecting rows from another table?

563


What is the oracle implicit cursor?

606


How to apply filtering criteria at group level in oracle?

600


What is the difference between $oracle_base and $oracle_home?

596


Differentiate between post-database commit and post-form commit?

551






how to clone 9i Database on to 10g Database.

1835


How to use in conditions in oracle?

569


Assuming today is Monday, how would you use the DBMS_JOB package to schedule the execution of a given procedure owned by SCOTT to start Wednesday at 9AM and to run subsequently every other day at 2AM.

1512


How to import one table back from a dump file?

605


How to compare dates in oracle sql?

670


1) What is ONE_SIZE_FITS_ALL approach? 2) Explain the Common & Variable Header of DATA FILE? 3) What are the Drawbacks to using OMF DB? and the Advantages? 4) List out the Advantages of Undo T.spaces over the Undo SEGMENT? 5) Difference between the Temporary tablespace with TEMPFILE and the Tablespace with TEMPORARY Keyword? 6) What are the situation extents are freeing for reuse.

1620


Is oracle a programming language?

574


How to connect to oracle using service name instead of sid?

561


What is save point in oracle database?

737


What is Library Cache in Oracle?

653