Answer the question
In order to leave comments, you need to log in
How can you select products?
Tell me how best to make a selection of goods by some parameters, for example, by price, or other parameters in the following scenario:
Table of goods:
ID | title | date | ...
Table of parameters (several rows for one product):
object_id | name | value
At the moment, everything has come to
SELECT *
FROM `object`
JOIN `object_param` ON `object_param`.`object_id` = `object`.`id`
ORDER BY `date` DESC
LIMIT 15
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question