您的位置:首页技术文章
文章详情页

mysql limit之后想统计查询出来的条数的某个字段和?

浏览:31日期:2022-06-17 11:52:11

问题描述

问题解答

回答1:

用子查询的方式来实现:

select uid, sum(skip) as sumskip, time from (select uid, skip, time from attendance where uid = 8499 order by time limit 3) as subt;

相关文章: