如何插入指向多个 id 的记录?

How to insert a record that points to many ids?

我对如何实现这个table有点困惑(仍在学习SQL)。我想有 2 个 table 的关系,但是与另一个 table 相关的列需要能够接受多个外键。这是我想尝试做的例子...

**Candidate Table**
(PK) id : int
(FK) exams : ??? <------ Multiple students many have multiple exams, so I need this column to contain MULTIPLE foreign keys. WHAT is the datatype that needs to be assigned to this column to take multiple foreign ids???
candidate_name : varchar (50)

**Exams Table**
(PK) id : int
exam subject : varchar (50)
exam_no : varchar(10)
nom_candidates : int

是否可以在 mySQL 中执行此操作(尽管它很混乱且令人困惑)?为了获取多个键,第一个 table 中指向的列的数据类型是什么?

调查多对多关系。 Here is a good example.

Create table that connects Candidate with Exam
** CandidateExam **
(FK) candidate_id: int
(FK) exam_id: int