`

常用SQL语句

 
阅读更多

 MySql分组查询语句:

from Share as s left join fetch s.ruid Where s.ruid.ruid in(select f.friendRuid from Friends as f Where f.ruid.ruid=?) or s.ruid.ruid=? group by s.typeId,s.itemId order by count(s.content) desc

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics