例如,分页遍历其中一个表的记录,每页3条记录,例如:** 首页 **mysql> select * from student order by id limit 3*0,3;+----+--------
4.1 countcount是指统计记录条数。
-----+| count(*) |+----------+| 3 |+----------+1 row in set (0.00 sec)4.1.2 分组情况下聚合:** 按照class_no分组统计,
博学北楼B401 || 5 | 陈六 | 22 | 201902 | 201902 | 2019级02班 | 博学北楼B401 || 7 | 杜甫 | 24 | 201902 | 201902 | 2019
级02班 | 博学北楼B401 || 8 | 岳飞 | 23 | 201902 | 201902 | 2019级02班 | 博学北楼B401 |+----+----------+------+-----