# Write your MySQL query statement below select distinct Num from ( select Num, case when @prevNum = Num then @count := @count + 1 when (@prevNum := Num) is not null then @count := 1 end n from Logs, (select @prevNum := NULL) r order by Id ) a where n >= 3
题目5:MySQL----------Consecutive Numbers
标签:mysql database consecutive numbers
查看更多关于题目5:MySQL----------Consecutive Numbers的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did160789