分享|SQL题目记录

38
2026.12.02
2026.12.02
发布于 北京
id, voice_id, user_id, play_time,sql找出所有用户最近播放的三个声音
SQL
select t1.*
from play_record t1
where (select count(*) from play_record t2
    where t2.user_id = t1.user_id
    and t2.play_time > t1.play_time) < 3

评论 (0)