L
L
leraks2018-07-15 21:56:12
MySQL
leraks, 2018-07-15 21:56:12

How to make one product could be displayed in two categories?

There is a product, it has a category
It is necessary that it can be in several categories at once
How to do this, tell me please?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vladimir, 2018-07-15
@Casufi

https://code.tutsplus.com/articles/sql-for-beginne...

R
RidgeA, 2018-07-15
@RidgeA

assign product 2 categories

O
ocupay, 2018-07-15
@ocupay

https://m.habr.com/post/193380/
Item 8

V
Vladimir Golub, 2018-07-16
@RazerVG

Create a link table "Products - Categories", then from the Products table make a one-to-many relationship, similarly for the category. Then write sql queries with join.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question