Answer the question
In order to leave comments, you need to log in
Do I need to add an ID column in pivot tables?
I was interested in the question - does it make sense to add an ID column in pivot tables in MySQL? Is it possible to do without it? Or is it always needed?
Are there any cases by which you can understand when they are needed and when they are not needed?
Answer the question
In order to leave comments, you need to log in
You can create for convenience if you need to manage a specific record. Especially if there are additional fields there, such as sorting, or a counter.
If you don't explicitly specify a primary key, MySQL will create one anyway, "hidden".
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question