sql - How can I search the string X times in the DB? (MYSQL + PHP) -


Hey, first I use SQL + PHP DB type is mysql.

I have a column with many strings, but I want to find the string 08/08/10 if it is present in the column 5 times for example, then how do I do it?

** If I will:

very much Thanks!

Bring the rows where the string is present at least once and calculate the count for php (eg Substrate).

  foreach ($ db-> fetchAll ("where y '% blah%'") as $ rec) if (substr_count ($ RE-gt; Y, "Blah ") == 5) Bingo ...  

This can also help tell us about your problem - perhaps there are better ways to organize the database.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -