取代MybatisPlus?阿里推出了新 ORM 框架!,如何访问Redis中的海量数据

本文介绍了如何使用阿里新推出的ORM框架处理Redis中的海量数据,对比了fluent mybatis, 原生mybatis和Mybatis Plus的实现方式。通过SQL查询示例展示了统计学生成绩的复杂查询,并分析了不同实现的优缺点。此外,作者分享了个人成长经历,强调了不断学习提升技术的重要性。" 66971128,6247095,直方图均衡化与图像信噪比解析,"['图像处理', '信号处理', 'MATLAB', '图像分析']
摘要由CSDN通过智能技术生成

create table student_score

(

id           bigint auto_increment comment ‘主键ID’ primary key,

student_id   bigint            not null comment ‘学号’,

gender_man   tinyint default 0 not null comment ‘性别, 0:女; 1:男’,

school_term  int               null comment ‘学期’,

subject      varchar(30)       null comment ‘学科’,

score        int               null comment ‘成绩’,

gmt_create   datetime          not null comment ‘记录创建时间’,

gmt_modified datetime          not null comment ‘记录最后修改时间’,

is_deleted   tinyint default 0 not null comment ‘逻辑删除标识’

) engine = InnoDB default charset=utf8;

现在有需求:

统计2000年三门学科(‘英语’, ‘数学’, ‘语文’)及格分数按学期,学科统计最低分,最高分和平均分, 且样本数需要大于1条,统计结果按学期和学科排序

我们可以写SQL语句如下

select school_term,

subject,

count(score) as count,

min(score)   as min_score,

max(score)   as max_score,

  • 28
    点赞
  • 30
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值