You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECT t.*,@rownum := @rownum + 1 AS rank_num FROM (SELECT @rownum := 0) r,(SELECT user_id,SUM(coin) AS total FROM test GROUP BY user_id ORDER BY total DESC) AS t
怎么用think.model()完成同样的效果?不用think.model.query(sql)
The text was updated successfully, but these errors were encountered:
SELECT t.*,@rownum := @rownum + 1 AS rank_num FROM (SELECT @rownum := 0) r,(SELECT user_id,SUM(
coin
) AS total FROM test GROUP BYuser_id
ORDER BY total DESC) AS t怎么用think.model()完成同样的效果?不用think.model.query(sql)
The text was updated successfully, but these errors were encountered: