冷凡社长
冷凡社长
全部文章
分类
题解(2)
归档
标签
去牛客网
登录
/
注册
冷凡社长的博客
TA的专栏
0篇文章
0人订阅
SQL题解
0篇文章
0人学习
全部文章
(共136篇)
题解 | #Where in 和Not in#
select device_id,gender,age,university,gpa from user_profile where university in ("北京大学","复旦大学","山东大学") 这个题目主要考察了条件筛选里面的...
Mysql
2022-07-14
0
176
题解 | #高级操作符练习(2)#
select device_id,gender,age,university,gpa from user_profile where university = "北京大学" or gpa > 3.7 主要的考察点是where的多条件筛选,其中加入 or 逻辑符号,满足其...
Mysql
2022-07-14
1
199
题解 | #高级操作符练习(1)#
select device_id,gender,age,university,gpa from user_profile where gender = "male" and gpa > 3.5 主要的考察点是where的多条件筛选,其中加入 AND 逻辑符号,需要两个同...
Mysql
2022-07-14
0
192
题解 | #用where过滤空值练习#
select device_id,gender,age,university from user_profile where age is not null and age <> "" 这个题实际的考察点,就是空值的过滤,题目本意是想考察 null的使用。 在实际工...
Mysql
2022-07-13
161
1419
题解 | #查找除复旦大学的用户信息#-冷凡社长
```sql select device_id,gender,age,university from user_profile where university <> "复旦大学" ``` 主要就是考察 <> 不等于 。!=是不等于的另一种写法。 ```sql selec...
Mysql
2022-07-13
1
229
题解 | #查找某个年龄段的用户信息#
推荐写法。 select device_id,gender,age from user_profile where age >=20 and age<=23 如果想使用 between的话,需要先确认between是否包含两边端点,具体的规则。在mysql中,是两边包含的,但是不代笔别的...
Mysql
2022-07-13
2
227
题解 | #查找年龄大于24岁的用户信息#
select device_id,gender,age,university from user_profile where age > 24 该题同样也是考察条件查询,其中的列大于数值 > ,可以算是运算判断,包括 <,=,in,between等
Mysql
2022-07-13
0
236
题解 | #查找学校是北大的学生信息#
select device_id,university from user_profile where university = "北京大学" 本节知识点,主要是考察条件筛选的能力其中为 字符串=某个值的查询
Mysql
2022-07-13
0
225
题解 | #将查询后的列重新命名#
select device_id as user_infos_example from user_profile limit 2 这题的知识点主要是 对列使用别名,同时加入了上个题的前两个的限制。需要注意的是,这里的重命名仅仅针对本次查询有效,并不更改原始表的内容。 AS 虽然可以省略,但是在表的重...
Mysql
2022-07-13
0
211
题解 | #查询结果限制返回行数#
select device_id from user_profile limit 2 这里要考察的知识点就是 limit除了这个之外,要注意,在实际的工作中,常常是根据大小来去前几位,所以 limit 与 order by 常常一起结合使用。
Mysql
2022-07-13
0
184
首页
上一页
5
6
7
8
9
10
11
12
13
14
下一页
末页