what are the advantages of primary key over unique+notnull

Answer Posted / kamal

we are able to create a primary key for combination of more
than 1 column. which is not possible in Unique,we should
create unique key for each and every column in the table
individually.

ex . we can create a primary key for (Name,DOB,address)- ie
combination of these three columns be unique.

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are all ddl commands?

551


What are functions in sql?

512


How do temporal tables work?

521


How is debugging done?

533


Why do we need sharding?

530






what are the non-standard sql commands supported by 'mysql'? : Sql dba

573


Is id a reserved word in sql?

667


Is sql low level language?

579


Explain the steps needed to create the scheduled job?

565


Why cross join is used?

637


Why primary key is required?

559


what is the difference between undefined value and null value? : Sql dba

565


What is difference between db2 and sql?

533


What is the difference between the implicit and explicit cursors?

528


How do I send sql query results to excel?

583