链接两个数据库表 [英] link two database tables

查看:102
本文介绍了链接两个数据库表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个非常快的问题。有一个表的主要功能是持有两个外键的术语吗?例如,如果我有两个表,用户和组,是否有一个官方术语为成员资格表,其中包含user_id和group_id?

A very quick question. Is there a term for a table who's primary function is holding two foreign keys? For example, if I have two tables, user and group, is there an official term for the "membership" table that holds user_id and group_id?

推荐答案

这是一个支持多对多关系的交集表。

It's an intersection table which supports many-to-many relationships.

这篇关于链接两个数据库表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆