给个offer行不行x
给个offer行不行x
全部文章
分类
sql(46)
算法题(26)
题解(2)
归档
标签
去牛客网
登录
/
注册
给个offer行不行x的博客
全部文章
(共45篇)
题解 | SQL37 查找后多列排序
上一题是一个条件,这一题是多个排序条件,直接是在order by关键字后加上列和排序的规则。 select device_id, gpa, age from user_profile order by gpa asc, age asc;
Mysql
2021-12-12
0
305
题解 | #SQL36 查找后排序#
条件查询的条件放在表的后面。 条件是按照年龄来进行升序排序。 所以需要用到order by,又因为是升序所以为asc。 select device_id, age from user_profile order by age asc;
Mysql
2021-12-11
0
371
题解 | #查询结果限制返回行数#
限制返回的结果数量是在最后加上LIMIT关键字和限制的数量。 select device_id from user_profile LIMIT 2;
Mysql
2021-12-09
0
274
题解 | #查询结果去重#
去重的语句为distinct放在字段前面。 select distinct university from user_profile;
Mysql
2021-12-08
0
268
题解 | #sql1-查询多列#
这个是把所有需要的列名都获得的sql语句,所以后面不用加where语句来特判是哪一个id。 select [列名1, 列名2...] from [表名]; 答案: select device_id, gender, age, university from user_profile;
Mysql
2021-12-06
16
904
首页
上一页
1
2
3
4
5
下一页
末页