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
Why do we need cursor in pl sql?
how to run 'mysql' commands from a batch file? : Sql dba
discuss about myisam index statistics collection. : Sql dba
what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba
how many ways to get the current time? : Sql dba
Explain the difference between cursor declared in procedures and cursors declared in the package specification?
Can you load data into multiple tables at once? : aql loader
How to Declare Fixed Length String Value In PL SQL
How do you sort in sql?
Differences between Oracle 9i and 10g (Probably in terms of SQL and PL/SQL)?
How long it takes to learn pl sql?
Is it possible to read/write files to-and-from PL/SQL?
What is pivot in sql?
What are sql queries used for?
Why is theta join required?