Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-06 09:39:37
Original
1393 people have browsed it

mysql数据

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!