˙Ⱉ˙学习笔记——mysql查询(2)
发布于 2021-03-31 05:24
--聚合函数
--分组
--分页
where->orderby->limit
--连接查询
--自关联
--子查询
--标量子查询
--查询出高于平均身高的信息
--查询最高的男生信息
select * from students where height(select max(height) from students);
--列级子查询
--查询学生的班级号能够对应的学生信息
select * from students where cls_id in (select id from classes);
本文来自网络或网友投稿,如有侵犯您的权益,请发邮件至:aisoutu@outlook.com 我们将第一时间删除。
相关素材