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
Can we use update in sql function?
Is mariadb a nosql database?
What is pls integer?
How do I turn a list into a table?
What is materialized view in sql?
What is varchar used for?
What is scalar function?
How do I count rows in sql?
Why do we need cursors in pl sql?
Is grant a ddl statement?
Can variables be used in sql statements?
What are actual parameters and formal parameters?
Is delete faster than truncate?
What is the limitation on the block size of pl/sql?
What are sql built in functions?