What is differance unique key and primary key.

Answer Posted / madhu

unique key:
1.unique key will accept more than one null value.
2.whenever u created a unique key, then internally one non-clustered index will be created(one table can have more than one Non-clustered index).
3.one table can have more than one unique key.
Primary key:
1.One table should have one primary key only.
2.primary key will not accept null values.
3.whenever u created a primary key then internally one clustered index will be created(one table can have only one clustered index).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between $message and $$message? : Sql dba

549


What is sql constant?

509


What is trigger in sql and its types?

536


What is keys and its types?

543


How do you write an index?

527






Which are the different character-manipulation functions in sql?

548


Is oracel sql developer written in java?

648


Explain the purpose of %type and %rowtype data types?

503


what are the advantages and disadvantages of cascading style sheets? : Sql dba

552


What is t-sql? : Transact sql

542


What are crud methods?

553


What are the possible values for the boolean data field?

525


How do you use join?

524


What is sql partition function?

618


how to select first 5 records from a table? : Sql dba

509