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 / prativa mishra

We can create more unique key in a table but we can not create more then one primary key in a table.At the time of primary key creation thr is a clusterd index created automatically and it sorts data physically. It helps in searching process which not possible in unique+notnull column

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are system versioned tables?

559


what does it mean to have quoted_identifier on? : Sql dba

685


can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible? : Sql dba

541


What is join view in sql?

522


What is an implicit commit?

565






What is sql and its types?

634


Mention what plvcmt and plvrb does in pl/sql?

650


What is difference between sql and excel?

528


How delete all data from table in sql?

579


What is pl sql block in dbms?

538


What is a record in a database?

566


How to fix oracle error ora-00942: table or view does not exist

577


What is the order of sql select?

583


how to write date and time literals? : Sql dba

538


Does sql view stored data?

546