问题描述
JE的博客排行用ror如何实现的啊?比如我这里有个user, user下面有很多blog,blog里面有点击数,如何根据这些信息实现user按年月排序呢?谁能给个思路,谢谢
解决方案
select * from user where startdate >= ? and enddate <= ? order by score desc
时间: 2024-10-24 01:57:50
JE的博客排行用ror如何实现的啊?比如我这里有个user, user下面有很多blog,blog里面有点击数,如何根据这些信息实现user按年月排序呢?谁能给个思路,谢谢
select * from user where startdate >= ? and enddate <= ? order by score desc