-- 语法:
SELECT select_list    
FROM table_name   
[ WHERE search_condition ]   
[ GROUP BY group_by_expression ]   
[ HAVING search_condition ]   
[ ORDER BY order_expression [ ASC | DESC ] ] 
[limit m,n] 
  
-- 示例:
-- limit 0,10是从第一条开始,取10条数据
select classNo  from table_name  
group by classNo   
having(avg(成绩)>70) 
order by classNo  
limit 0,10

 

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2021-05-20
  • 2021-10-11
  • 2021-07-24
  • 2021-12-13
  • 2022-12-23
  • 2022-02-14
猜你喜欢
  • 2022-12-23
  • 2022-02-25
  • 2021-11-17
  • 2021-07-06
  • 2022-12-23
  • 2021-08-05
相关资源
相似解决方案