mysql 查询 top 1 或 top 10 的写法

    xiaoxiao2021-03-25  111

    table_score 学生的分数表  

    number 学号  

    score 分数

    select * from table_score a where a.number = 'stu5' order by a.score desc limit 1  (or limit 10)

    转载请注明原文地址: https://ju.6miu.com/read-8491.html

    最新回复(0)