It is required to implement the connection of table fields so that in the field of the second table we can indicate not one, but several values from the first.
Let's say
(for clarity, I will give examples of the names of tables and cells in Russian)
We have the "People" list:
Fields: id, name
Values:
- 1 Vasya
- 2 Petya
- 3 Sasha
- 4 Masha
We also have a table "Parties" with a field "Invited-people" of type set, containing a list of invited people (their id from the table "People").
Let me explain: in the "Invited People" field, only those identifiers that are present in the "People" table should be added.
Question
Is it possible to implement it on mysql?