IN A TABLE HAVE ONE COLUMN PRIMARY KEY..IT WILL NOT ALLOWS
NULL VALUES AND DUPLICATE VALUES..INSTEAD OF PRIMARY KEY
WHY CANT WE USE UNIQUE AND NOT NULL.THESE TWO ALSO DOESNT
ACCEPT NULL VALUES IN NOT NULL AND UNIQUE DOESNT ACCEPT
DUPLICATE VALUES?
SO WHAT IS THE DIFEERENCE BETWEEN(UNIQUE,NOT NULL) AND
PRIMARY KEY??????
Answer Posted / shahid
the above answer is wrong ...we can use foreign key for
unique key also...
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What are crud methods?
What is the use of nvl function?
What does where 1/2 mean in sql?
How do I add a primary key to a table?
what is transaction? : Sql dba
What are the most important characteristics of pl/sql?
Mention what are different methods to trace the pl/sql code?
What is varray in pl sql?
How do I upgrade sql?
How are sql commands classified?
What is varchar used for?
Explain the advantages and disadvantages of stored procedure?
what are string data types? : Sql dba
How can I change database name in sql?
Why is stored procedure faster than query?