Answer the question
In order to leave comments, you need to log in
Get a limited number of id for each characteristic through the logical IN operator or in some other way?
In general, there is such a table structure
. This table stores the values of the characteristics of goods.
Can I somehow get a limited number of values for each characteristic with this code?
SELECT * from `table_name` WHERE `feature_id` IN (90,91,92,93...)
Answer the question
In order to leave comments, you need to log in
(
SELECT ...
FROM `table`
WHERE `feature_id` = 90
LIMIT 6
) UNION (
SELECT ...
FROM `table`
WHERE `feature_id` = 91
LIMIT 6
) UNION ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question