MYSQL数据库 聚合函数与子查询

聚合 为了快速统计数据,提供了5个聚合函数: count(*) 表示计算总的行数,括号中写 * 与列名,其结果相同 例: select count(*) from students; select count(*) from students where isdelete=1; max(列) 表示求此列的最大值 例: #求gender=1的id的最大值 select max(id) from st
相关文章
相关标签/搜索