摘要: 1.整理今日内容2.完成下列分组查询练习题(以课上建表代码为参考) mysql> create table emp( -> id int not null unique auto_increment, -> name varchar(20) not null, -> sex enum('male', 阅读全文
posted @ 2020-05-06 18:01 耗油炒白菜 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 阅读目录 一 介绍 二 多表连接查询 三 符合条件连接查询 四 子查询 一、介绍 文章内容: 多表连接查询 复合条件连接查询 子查询 准备表和记录 #建表 create table dep( id int, name varchar(20) ); create table emp( id int p 阅读全文
posted @ 2020-05-06 17:44 耗油炒白菜 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 阅读目录 一 单表查询的语法 二 关键字的执行优先级(重点) 三 简单查询 四 WHERE筛选条件 五 分组查询:GROUP BY 什么是分组,为什么要分组 only_full_group_by group by 聚合函数 having分组之后的筛选条件 distinct去重 order by排序 阅读全文
posted @ 2020-05-06 17:09 耗油炒白菜 阅读(270) 评论(0) 推荐(0) 编辑