星空真美呀
星空真美呀
全部文章
分类
题解(34)
归档
标签
去牛客网
登录
/
注册
星空真美呀
全部文章
(共14篇)
题解 | #查找学校是北大的学生信息#
两种方法: ##SELECT device_id,university from user_profile where university='北京大学'; select device_id,university from user_profile where university like '%北...
Mysql
2022-03-05
74
5211
题解 | #查询结果去重#
两种办法 ##查看前两个用户,使用in ##SELECT device_id as user_infos_example from user_profile limit 0,2; select device_id as user_infos_example from user_profile whe...
Mysql
2022-03-05
4
472
题解 | #查询结果去重#
正解:使用limit限制返回的最大记录数 ## 查询结果限制返回行数 # LIMIT 子句可以被用于强制 SELECT 语句返回指定的记录数。 # LIMIT 接受一个或两个数字参数。参数必须是一个整数常量。 # 如果只给定一个参数,它表示返回最大的记录行数目。 # 如果给定两个参数,第一个参数指定...
Mysql
2022-03-05
0
736
题解 | #查询结果去重#
两种思路 第一种:使用distinct(关键词distinct用于返回唯一不同的值) select distinct university from user_profile; 第二种:使用group by按照university进行分组 select university from user_p...
Mysql
2022-03-05
100
2097
首页
上一页
1
2
下一页
末页