Is primary key = unique key,not null?
If yes,please explain
IF No,please explain

Answer Posted / chandrika

if we define unique key column to not null
then first attempt it not allow to insert null value in
column but after inserting once we can edit its value to
null even if it is not null ( means its allow null)

if we assign primary key then its not allow (in every
situation it not allow null and duplication)

that is main difference between unique key and primery key

Is This Answer Correct ?    0 Yes 7 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?

544


State and explain the different types of data models?

530


What is the difference between Delete, Truncate and Drop in Oracle?

602


Can a parameter be passed to a cursor?

598


Why should I use oracle database?

569






How many file formats are supported to export data?

656


Describe the types of sub query?

549


What are the data types in oracle?

548


What is user managed backup in Oracle?

610


How do I know if oracle client is installed on windows?

494


How can windows applications connect to oracle servers?

518


What is PL/SQL ?

1106


How to create a new tablespace in oracle?

557


How to pass parameters to procedures?

553


How to list all user accounts in oracle?

608