开发者社区> 问答> 正文

What are the types of relationships used in MySQL?

已解决

What are the types of relationships used in MySQL?

展开
收起
1780169608831412 2021-10-16 16:50:43 530 0
1 条回答
写回答
取消 提交回答
  • 网络规划设计师、敏捷专家、CISP、ITSS服务经理、ACA全科目、ACP4项、ACE、CBP、CDSP、CZTP等。拥有 PRINCE2 Foundation/Practitioner、CCSK、ITIL、ISO27001、PMP等多项国际认证。 专利5+、期刊10+、知识产权师。核心期刊审稿人。
    采纳回答

    There are three categories of relationships in MySQL:

    One-to-One: Usually, when two items have a one-to-one relationship, you just include them as columns in the same table.

    One-to-Many: One-to-many (or many-to-one) relationships occur when one row in one table is linked to many rows in another table.

    Many-to-Many: In a many-to-many relationship, many rows in one table are linked to many rows in another table. To create this relationship, add a third table containing the same key column from each of the other tables

    2021-10-16 17:29:28
    赞同 1 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像