0
我想在MySQL的查詢計數的字符出現的次數在特定領域如何計算特定的字符在特定領域SQL
例如:
Class | ID
============================
d |1
c;g;i;m |2
r;e |3
最終resault應:
Class | ID | NumOf; (to be added)
==========================================================
d |1 | 0
c;g;i;m |2 | 3
r;e |3 | 1
謝謝!
[計數字符串在VARCHAR字段中出現的次數?](http://stackoverflow.com/questions/12344795/count-the-number-of-occurences-of-a-string- in-a-varchar-field) –