Look up on www.mysql.com documentation, you can do a count within a select
statement
SELECT whatever COUNT(whatever) AS COUNT FROM table GROUP BY 'something'
HAVING something = 'something'
--
| whatever | count |
--
| stuff selected |50 |
Hi, i am coding a news manager backend for a client and i ran into a
little problem.
I have two tables, one with the news and one with the comments on each news.
How can i count how many comments there are for each news entry? Simply
put, is there some sort of Mysql co
2 matches
Mail list logo