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 / john
primary key will not allow null values.but in case of
unique,more than one null value s accepted.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How can a function retun more than one value in oracle with proper example?
How do I know if I have sql express or standard?
What is sql character function?
what are the join types in tsql? : Transact sql
how to analyze tables with 'mysqlcheck'? : Sql dba
what is foreign key? : Sql dba
What are synonyms in sql?
Is it important to partition hard disk?
What is the maximum database size for sql express?
What is rowid in sql?
Why do we need pl sql?
What is the difference between clustered and non-clustered indexes?
Does a primary key have to be a number?
What does t sql mean?
What is use of trigger?