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
How do I create an index in word?
What is java sql driver?
what is cross join? : Sql dba
How consistent is the view of the data between and within multiple sessions, transactions or statements ?
what are the disadvantages of mysql? : Sql dba
what is blob? : Sql dba
what are tables and fields? : Sql dba
What is sql data?
How do I add a primary key to a table?
Describe sql comments?
What is the difference between rollback and rollback to statements?
What programs use sql?
Are there any features that are decommissioned in 11g that are not present in 11g?
What is the use of primary key?
What are character functions?