我觉得可能是这样? select count(uid)as 在线人数 from (select uid,timestampdiff(second,begin_time,end_time)as时间间隔 from 表)t where 时间间隔 = 1
点赞 1

相关推荐

给🐭🐭个面试机会...:我擦seed✌🏻
点赞 评论 收藏
分享
牛客网
牛客网在线编程
牛客网题解
牛客企业服务