New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rownum怎么用 #1503
Comments
复杂语句使用 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: