Can a table have two foreign keys?

前端 未结 4 1815
一整个雨季
一整个雨季 2021-02-02 10:02

I have the following tables (Primary key in bold. Foreign key in Italic)

Customer table

  • ID---Name---Balance---
4条回答
  •  不思量自难忘°
    2021-02-02 10:51

    Yes, MySQL allows this. You can have multiple foreign keys on the same table.

    Get more details here FOREIGN KEY Constraints

提交回复
热议问题