Home  >  Article  >  Database  >  数据-mysql 获取连续值的个数

数据-mysql 获取连续值的个数

WBOY
WBOYOriginal
2016-06-06 09:39:371421browse

mysql数据

图片说明
我说一下我的需求;
我想获取mysql数据表各个字段的最大连值的个数,例如现在字段num_1_x 里面的三个连续的值都是0;我要把num_1_x 连续出现数字0的次数,就是说我要得到现在num_1_x的连续出现次数3,请问一下mysql里面有没有这种方法?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn