lahm66
lahm66
全部文章
分类
归档
标签
去牛客网
登录
/
注册
lahm66的博客
全部文章
(共125篇)
题解 | 低买高卖
参考:https://blog.nowcoder.net/n/94c945090e7e42fbb7b290827ac4e609 import java.util.*; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { pub...
2025-10-12
1
25
题解 | 【模板】快速幂Ⅰ ‖ 整数
参考资料:https://blog.nowcoder.net/n/36a6859228044debada0e4c88109afb8https://blog.nowcoder.net/n/4711e1f61ced4eac9866a936c876d2ca import java.util.Scanner...
2025-10-12
0
21
题解 | 查找后降序排列
select device_id,gpa,age from user_profile order by gpa desc ,age desc;
2025-10-11
1
29
题解 | 查找后多列排序
select device_id,gpa,age from user_profile order by gpa asc ,age asc;
2025-10-11
1
26
题解 | 查找后排序
select device_id,age from user_profile order by age asc;
2025-10-11
1
19
题解 | 将查询后的列重新命名
select device_id user_infos_example from user_profile limit 0,2;
2025-10-11
1
24
题解 | 查询结果限制返回行数
limit的使用 LIMIT 是 MySQL 中用于限制查询结果数量的子句,常用于分页或获取特定范围的数据。 # 示例 1:获取前 5 条记录 SELECT * FROM table_name LIMIT 5; # 此语句从结果集中返回前 5 条记录,相当于 LIMIT 0, 5。 # 示例 ...
2025-10-11
1
26
题解 | 查询结果去重
distinct使用 select distinct university from user_profile;
2025-10-11
1
31
题解 | 查询多列
select device_id,gender,age,university from user_profile;
2025-10-11
1
26
题解 | 查询所有列
select * from user_profile;
2025-10-11
0
30
首页
上一页
1
2
3
4
5
6
7
8
9
10
下一页
末页