- 博客(1)
- 收藏
- 关注
原创 SQL笔记:聚合、分组、排序、分页
聚合1、统计总行数:count(*)例:selet count(*) from user where state = 1;统计user表中状态为1的数据条数。2、求某列最大值:max(列名)例:select max(age) from user where state = 1;求状态为1数据年龄列的最大值。3、求某列最小值:min(列名)例:同上4、...
2018-07-19 16:32:37
1235
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人