im using php and I have this mysql query :
SELECT * FROM numbers
WHERE
( XXX LIKE '999' AND YYY RLIKE '[0-9]88[0-9]')
OR
( XXX LIKE '111' AND YYY RLIKE '[0-9]23[0-9]')
My Question:
how can I know how many results I get from ( XXX LIKE ‘999’ AND YYY RLIKE ‘[0-9]88[0-9]’) and how many results i get from ( XXX LIKE ‘111’ AND YYY RLIKE ‘[0-9]23[0-9]’) and so on.
I dont want to split them into two queries because i have many of these conditions in my query. plus i still want to get the result that satisfies the conditions. please help me
1 Answer