Question table:
id | tags
--------------------------------------
1 | css,javascript,html
2 | mysql,sql,html
3 | css,spring,php
4 | css,java,html
I am trying to figure out how to return the number of times a string occurs in each of the tags's.
Result Table:
tags | count
--------------------------------------
css | 3
html | 3
javascript | 1
php | 1
You can use:
SqlFiddleDemo
You can simply try like this:
One other way is to use it like this: