最佳答案: select sendid, receivedrid,postDate,'send' status from table union all select receivedrid, sendid, postDate,'recieved' status from table order...更多关于mysql group by 如何解决聊天分组 取最新记录的问题>>
[专业]答案:可直接用嵌套查询。 方法如下: 如数据: id name 1 a 1 b 2 c 2 d 3 e 3 f 3 g 3 h select count(t.counts) from(select id,count(*...更多关于mysql group by 如何解决聊天分组 取最新记录的问题>>