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

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

    1)A primary key is a set of one or more attributes that uniquely identifies tuple within relation.

    2)A foreign key is a set of attributes from a relation scheme which can be uniquely identify tuples fron another relation scheme.

提交回复
热议问题