Difference between primary key and unique key ?

Answer Posted / sunil upadhyay

the basic difference is that primary key can not have null
value whereas Unique key can have null values.two null
value are not same.One table may have more than one Unique
Key Constraint
columns, but should have only one Primary Key Constraint
column.

Is This Answer Correct ?    88 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is program global area (pga) in oracle?

607


Describe the types of sub query?

555


How to delete a column in an existing table in oracle?

603


Difference between inner join vs where ?

611


Differentiate between post-database commit and post-form commit?

543






What is enter substitution variable in oracle?

573


How to use subqueries in the from clause in oracle?

579


How to recover a dropped table in oracle?

605


Her departmandaki isçilerden empno' su ikinci sirada olan isçilerin empno, deptno, hiredate, sira_no bigilerini döndüren sorguyu yaziniz?

1567


What is the difference between a hot backup and a cold backup in oracle?

573


What is system tablespace?

632


How to find the duplicate rows count from employees table in oracle?

554


What is Virtual Private Database in Oracle?

624


What are dml statements in oracle?

621


How will you differentiate between varchar & varchar2?

591