leetcode 180 连续出现的数字

连续出现的数字

 

select distinct
    l1.num as ConsecutiveNums
from
    Logs l1,
    Logs l2,
    Logs l3
where
    l1.id = l2.id - 1
    and l2.id = l3.id - 1
    and l1.num = l2.num
    and l2.num = l3.num

 

===

posted @ 2023-04-11 12:24  Carl_ZhangJH  阅读(12)  评论(0)    收藏  举报