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
How does rowid help in running a query faster?
What is null in pl/sql?
How can you load microsoft excel data into oracle? : aql loader
what is the command line end user interface - mysql? : Sql dba
What are the advantages of indexing?
Can we use commit inside a trigger?
Enlist some predefined exceptions?
What is scalar function?
How to pipe multiline string to isql?
What type of database is cloud sql?
How to Declare Fixed Length String Value In PL SQL
How do I know if I have sql express or standard?
Why do we use sql constraints?
What are the steps for performance tuning.
What are all different types of collation sensitivity?