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
Post a Comment