What is the difference between primary, unique and foreign key constraints, and indexes?

后端 未结 7 850
情深已故
情深已故 2021-01-30 11:25

What is the difference between primary, unique and foreign key constraints, and indexes?

I work on Oracle 10g<

7条回答
  •  借酒劲吻你
    2021-01-30 12:05

    Primary Key: identify uniquely every row it can not be null. it can not be a duplicate.

    Foreign Key: create relationship between two tables. can be null. can be a duplicate  

提交回复
热议问题