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 / prativa mishra
We can create more unique key in a table but we can not create more then one primary key in a table.At the time of primary key creation thr is a clusterd index created automatically and it sorts data physically. It helps in searching process which not possible in unique+notnull column
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
what is a cursor? : Sql dba
What's the difference between inner join and left join?
how to create a new view in mysql? : Sql dba
Explian rowid, rownum?
What is pl sql commands?
Can we insert in view in sql?
What are keys in sql?
how to escape special characters in sql statements? : Sql dba
How does cross join work?
What is auto increment?
Can you have more than one key in a database?
How do you use a while loop in pl sql?
What is a delimiter in sas?
How do you write an index?
What is relationship? How many types of relationship are there?