Answer the question
In order to leave comments, you need to log in
How to make a selection from a Mysql table by a field with multiple values?
How to be, there are three tables
1. cities
id | name
--------------
1 | Moskow
2 | Kirow
3 | Orel
....
id | name
--------------
1 | name1
2 | name2
3 | name3
...
id | name | cities_id | categories_id
----------------------------------------------------
1 | alpha | 1,2,5,18 | 3,76,78
2 | betta | 2,14,31 | 13,60,75
3 | gamma | 1,17,19 | 95,101
....
Answer the question
In order to leave comments, you need to log in
deal with the normal forms of the database and reverse-engineer the normal database.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question