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 / aritra biswas
With the creation of primary key the oracle server
automatically creates and maintains a index on the primary
key column(s). Because of that index, the searching
processes on that table will be very fast where as
declaring a column as a (unique+not null) will not create
any index on that colum(s).It has to be created manually by
the DBA/users if we wish to enhance the searching process.
| Is This Answer Correct ? | 8 Yes | 7 No |
Post New Answer View All Answers
What is transaction control language (tcl)?
What is constant in pl sql?
What is difference between mysql and postgresql?
Can we insert delete data in view?
What are all the different normalization?
What does sql stand for?
what are the different type of sql's statements ? : Sql dba
Show the cursor attributes of pl/sql.
Explain what is sql?
What is the benefit of foreign key?
What is java sql package?
How many types of keys are there in sql?
What is a behavioral trigger?
define data blocks ? : Sql dba
What is the maximum number of columns in sql table?