我有一个作为 player1 的玩家表,我想在其中获取连续第二天登录的人数。因此,就我而言,输出将是 2,因为连续第二天有 2 人登录。我尝试了以下 select count(*) from ( select player_id from player1 group by player_id 有 count(player_id)>1 order by player_id ) a join player1 b on a.player_id=b.player_id and b.log_in_date in (b.log_in_date ,(b.log_in_date+1))
但这得到了所有行 那是 9 行
