Skip to content
Advertisement

Tag: mysql

What is the best schema for a many-to-many relationship in MySQL?

I need to design a database schema. My data is as follows: Product Id (Primary Key), Product Name (String), Product Type (String), Item Count (INT), Tags (Array of Strings) My requirements: I need to frequently query Products based on Tags. It is a many-to-many relationship – Each Product Id could have many Tags and each tag could have many Product

Advertisement