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 / shahid
the above answer is wrong ...we can use foreign key for
unique key also...
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
What are the two characteristics of a primary key?
How do I know if I have sql express or standard?
How many times can we commit in a loop?
What are all types of user defined functions?
What is the basic form of sql query?
Are sql connections encrypted?
How do I partition a table in sql?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
Explain the advantages and disadvantages of stored procedure?
Which sql most popular?
Name some usages of database trigger?
What is varchar sql?
What is optimistic concurrency control? : Transact sql
Which one is better subquery or joins?
how to convert numeric values to character strings? : Sql dba