在刷代码的小师弟
在刷代码的小师弟
全部文章
分类
归档
标签
去牛客网
登录
/
注册
在刷代码的小师弟的博客
全部文章
(共51篇)
题解 | #用where过滤空值练习#
select device_id,gender,age,university from user_profile where age <> 'null'; # age is not null; # age != 'null';
2023-10-18
1
271
题解 | #查找除复旦大学的用户信息#
select device_id,gender,age,university from user_profile where university not like '复旦大学'; # university != '复旦大学'; # university not in('复旦...
2023-10-18
1
181
题解 | #查找某个年龄段的用户信息#
select device_id,gender,age from user_profile where age between 20 and 23;
2023-10-18
1
177
题解 | #查找年龄大于24岁的用户信息#
select device_id,gender,age,university from user_profile where age > 24;
2023-10-18
1
170
题解 | #查找学校是北大的学生信息#
select device_id,university from user_profile where university = '北京大学';
2023-10-18
1
218
题解 | #将查询后的列重新命名#
select device_id as 'user_infos_example' from user_profile where id in(1,2);
2023-10-18
1
134
题解 | #查询结果限制返回行数#
select device_id from user_profile where id in(1,2);
2023-10-18
1
186
题解 | #查询结果去重#
select distinct university from user_profile; # distinct 去除重复
2023-10-18
1
135
题解 | #查询多列#
select device_id,gender,age,university from user_profile;
2023-10-18
1
150
题解 | #查询所有列#
select * from user_profile;
2023-10-18
1
203
首页
上一页
1
2
3
4
5
6
下一页
末页