![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mysql
文章平均质量分 54
LiuXa11
这个作者很懒,什么都没留下…
展开
-
Mysql---学习笔记<二>
AS子句作为别名 AS子句作用 可给表取一个新的别名 可把经计算或总结的结果用另外一个新名称来代替 AS子句的用法 如: select studentno as “学号” from student; select a.studentno from student as a; select phone+1 as tel from student; 注意: as也可以省略不写 di原创 2016-05-02 10:39:39 · 415 阅读 · 0 评论 -
Mysql笔记(1)
–查找学生id为1,3,5的学生 select * from my_student where id=1 || id=3 || id=5; select * from my_student where id in(1,3,5);–查找身高在180到190之间的学生 select * from my_student where height >= 180 and height <=190 ;原创 2017-02-18 10:57:23 · 215 阅读 · 0 评论 -
Mysql笔记《2》
Having字句 Having字句:与where字句一样:进行条件判断 where是针对磁盘数据进行判断:进入到内存之后,会进行分组操作:分组结果就需要having来处理 having能做where能做的几乎所有事情,但是where却不能做having能做的很多事情 1. 分组统计的结果或者说统计函数都只有having能够使用 select c_id , count(*) from my_原创 2017-02-22 08:50:54 · 224 阅读 · 0 评论