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 create a table index in mysql? : Sql dba
If i can use sys.check_constraints to display my constraints from my database using sql server 2005, how can i display then if i am using sql server 2000????
How do you declare a constant?
Why do we use joins in sql?
What is the difference between function and procedure in pl/sql?
What are tables in sql?
How do you update a sql procedure?
How do I get sql certification?
What is a table?
Can we connect to postgresql using sql developer?
How does join work in sql?
What is dcl in sql?
what is msql? : Sql dba
What is pl/sql table? Why is it used?
what are aggregate and scalar functions? : Sql dba