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 / gazulas

if it is Primary key then we can make use foreign key in other table and can use the referential integrity concept

for unique keys we dont have that.

Is This Answer Correct ?    4 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between sql and oracle?

650


How many types of sql are there?

629


Is sql a oracle?

612


Is it possible to Restore a Dropped Table using Rollback Command in Oracle SQL Plus ?

817


Write the alter statement to enable all the triggers on the t.students table.

771






What is rowid in sql?

590


What is sql select statement?

597


How do I kill a query in postgresql?

656


How many sql databases can you have on one server?

671


What is difference between pls_integer and integer?

597


What are the topics in pl sql?

605


Explain constraints in sql?

680


What is native sql query?

650


what is a composite key ? : Sql dba

703


Describe different types of general function used in sql?

620