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

后端 未结 7 944
情深已故
情深已故 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:06

    Primary key mainly prevent duplication and shows the uniqueness of columns Foreign key mainly shows relationship on two tables

提交回复
热议问题