MYSQL 排行类的相关SQL写法,仅供参考_MySQL
程序员文章站
2024-01-12 22:16:34
...
bitsCN.com
SELECT * FROM (SELECT pid, (@rowno:=@rowno+1) as rowno FROM user, (select (@rowno:=0)) b WHERE cid = 1 order by total_score DESC) as c WHERE pid = 1bitsCN.com
上一篇: 提高Web页面性能的技巧_html/css_WEB-ITnose
下一篇: redis分布式锁