mysql 排序order by可以根据权重,进行表达式计算。再排序

1.select * from tbl_actor order by (follower_count+Recommend_weight)*weight_ratio desc limit 3;

2.order by (follower_count+Recommend_weight)*weight_ratio

3.可用于根据权值,做推荐列表用。

posted @ 2016-12-06 14:57  跨境电商杂货铺  阅读(5940)  评论(0编辑  收藏  举报