Answer the question
In order to leave comments, you need to log in
How to add condition in mysql query to count rows?
I have such a request
SELECT user_id, dogovor_name, COUNT(*) AS cnt
FROM user_dolg
WHERE dogovor_name='обыкновенный'
GROUP BY user_id
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question