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
What is the plv (pl/vision) package offers?
Is mariadb a nosql database?
Which table is left in join?
Why do we need cursor in pl sql?
How do you select unique values in sql?
Write the order of precedence for validation of a column in a table? I. Done using database triggers. Ii. Done using integarity constraints
What is prepared statement in sql?
What is the difference between numeric and autonumber?
What is benefit of creating memory optimized table?
How many types of triggers exist in pl/sql?
how many columns can be used for creating index? : Sql dba
What are triggers and its types?
What is the primary use of normalization?
what are the non-standard sql commands supported by 'mysql'? : Sql dba
What is sharding in sql?