Run time error, why????


  • 0
    H

    set @group := 1,
    @count := 0,
    @curnum := -99999;

    select distinct Num from (
    select Id, Num, @count := if(Num = @curnum,@count +1, 1) as count, @curnum := Num as Curnum
    from Logs group by ID
    ) LogTemp
    where count >2


  • -1
    F

    what are you doing? what did you write?


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.