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 / gazulas
if it is Primary key then we can make use foreign key in other table and can use the referential integrity concept
for unique keys we dont have that.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
What is difference between pls_integer and integer?
how many sql dml commands are supported by 'mysql'? : Sql dba
How long will it take to learn pl sql?
what are string data types? : Sql dba
What are the usages of sql?
What is a string data type in sql?
How do I delete a trigger?
What is spool?
Name the operator which is used in the query for pattern matching?
What is clustered index sql?
What is replication id?
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
What are three advantages to using sql?
What is sql and also describe types of sql statements?
What does the acronym acid stand for in database management?