首页
题库
公司真题
专项练习
面试题库
在线编程
面试
面试经验
AI 模拟面试
简历
求职
学习
课程
专栏·文章
竞赛
搜索
我要招人
发布职位
发布职位、邀约牛人
更多企业解决方案
在线笔面试、雇主品牌宣传
登录
/
注册
zengjunyu
获赞
29
粉丝
1
关注
4
看过 TA
5
女
安阳工学院
2022
Java
IP属地:浙江
人与人之间从来都不具有可比性
私信
关注
拉黑
举报
举报
确定要拉黑zengjunyu吗?
发布(10)
刷题
zengjunyu
2023-04-10 23:10
Java
题解 | #序列找数#
import java.util.Scanner; // 注意类名必须为 Main, 不要有任何 package xxx 信息 public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); // 注意 hasNext 和 hasNextLine 的区别 while (in.hasNextInt()) { // 注意 while 处理多个 case int nn=in...
0
点赞
评论
收藏
转发
zengjunyu
2023-04-10 22:21
Java
题解 | #计算男生人数以及平均GPA#
select count(gender)as male_num, round(avg(gpa),1)as avg_gpa from user_profile where gender="male"; #count() 计数函数 #as 重命名 #avg()求平均值 #round(number,num_digits):返回指定位数进行四舍五入数值。
0
点赞
评论
收藏
转发
zengjunyu
2021-12-08 10:43
Java
不要想着买游戏本,钱会吃亏
2021-12-08
在牛客打卡2天,今天学习:刷题 10 道
每日监督打卡
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 17:31
Java
题解 | #Where in 和Not in#
where ...in()增加复用性 select device_id,gender,age,university,gpa from user_profile where university in('北京大学','复旦大学','山东大学');
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 17:03
Java
题解 | #用where过滤空值练习#
判断某列不为空: 1、 is not null select device_id,gender,age,university from user_profile where age is not null; 2、 not...is null select device_id,gender,age,university from user_profile where not age is null; 3、where age select device_id,gender,age,university from user_profile where age;
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 16:54
Java
题解 | #查找除复旦大学的用户信息#
几种方法: 1、直接where条件语句用 != select device_id,gender,age,university from user_profile where university!="复旦大学"; 2、直接where条件语句用 not in() select device_id,gender,age,university from user_profile where university not in ("复旦大学"); 语法举例 1)查询 city 表中 ID 不是在10~100之间的所有值。 SELECT ID FROM city WHERE ID NOT IN( S...
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 16:37
Java
题解 | #查找某个年龄段的用户信息#
多个判断条件 用and连接: select device_id,gender,age from user_profile where age>=20 and age<=23;
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 16:29
Java
题解 | #查找学校是北大的学生信息#
where关键字:检索数据表中符合条件的语句 select device_id,university from user_profile where university="北京大学";
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 16:23
Java
题解 | #将查询后的列重新命名#
重新命名用as关键字 发现一遍文章:https://blog.csdn.net/baidu_41690072/article/details/79222860?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522163877871416780264023680%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=163877871416780264023680&biz_id=0&utm_mediu...
0
点赞
评论
收藏
转发
zengjunyu
2021-12-06 15:03
Java
题解 | #查询多列#
当输出全表时,可以直接两种写法 SELECT id,device_id,gender,age,university,province from user_profile; SELECT*from user_profile;
0
点赞
评论
收藏
转发
1
工具箱
TA的圈子
暂未加入圈子
TA的圈子
TA的笔记
暂无笔记
TA的笔记
登录
0
天
已登录
0
天
连续登录
0
人
今日访客
牛客网
牛客企业服务