T
T
TANK_IST2017-09-15 18:21:03
MySQL
TANK_IST, 2017-09-15 18:21:03

How to display the number of records with different values?

I'm fixing someone else's site.
It is necessary to bring out the most popular brands, there are many of them and they are different.
The brand is stored in the option column in json format.
99d3e0f3360049b39a5e0b591d965dac.png
How to get the result in the form $brands[бренд] = количество строк;if there is no list with brands?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2017-09-15
@TANK_IST

SELECT
JSON EXTRACT
GROUP BY

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question