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 / banti
Both r same :)
Primary Key= (Unique + Not Null)
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
how to include comments in sql statements? : Sql dba
write an sql query to find names of employee start with 'a'? : Sql dba
how to create a test table in your mysql server? : Sql dba
how to return query output in html format? : Sql dba
Explain the savepoint statement.
What are inner outer left and right joins in sql?
How are functions and procedures called in PL/SQL?
What are the two types of exceptions in pl/sql?
Why does sql need a server?
What is the purpose of design view?
Why do we go for stored procedures?
What are all the common sql functions?
What is bind reference and how can it be created?
how is myisam table stored? : Sql dba
What is the difference between subquery and correlated query?