how to group by and count using MySQL

后端 未结 4 1076
死守一世寂寞
死守一世寂寞 2021-01-29 01:51

I have data which looks like this:

ID  post_author post_title  guid
3309    21  Should somebody not yet on SQL 2008 wait for SQL 2008 R2, since it\'s near release?  h         


        
4条回答
  •  太阳男子
    2021-01-29 01:52

    SELECT COUNT(POST_AUTHOR) AS AUTHOR_COUNT, GUID FROM TABLE_NAME GROUP BY GUID
    

提交回复
热议问题