文章目录 建表 插入随机数 统计连续出现次数 建表 create table signal ( value smallint, record_datetime timestamp default now() ); 插入随机数 insert into signal(value) values