0
I realize that many people encounter this doubt at some point in their development, "Do I put comma-separated values in the same column? Or create an auxiliary table?" Both questions have their points to analyze.
I would like to use this post, to generate content that will aggregate not only to my knowledge, but also in the study of several people who at some point came across, or will come across this situation.
The creation of an auxiliary table, has some advantages in the treatment and organization of the data, but in a way ends up occupying more space in the BD when the flow of information starts to grow.
The use of multiple values in the same column, I believe, generates a space saving, but on the other hand, it ends up making SQL more complex and data more difficult to handle. What would be the most interesting model to follow, when we come across a situation like this?
Do you want to know specifically about Mysql with PHP? Or is it a more general question for relational databases?
– Jefferson Quesado
Hello Jefferson, the question is addressed to the database, I will remove PHP tags not to confuse.
– Mario Barreto