0
I have a table in the mysql database where in the field tags values are stored in this format:
+-----------------+
| tags |
+-----------------+
| B27;C38;H45;B27 |
| C38;H45 |
| B24;C45;L55;K98 |
+-----------------+
I need to count, via mysql or php, the single items in this column, row by row, so that the result brings me the count of the single items:
B27 -> 2
C38 -> 2
H45 -> 2
B24 -> 1
C45 -> 1
L55 -> 1
K98 -> 1
Already I thank you.
You would like to count these items using the same sql language?
– thiago dias
@thiagodias It can be via mysql or php.
– Henqsan