xmabul
xmabul
@coolnk2001 HELP~ I have meet the same problem,do you solve it ?
支持范围能否再扩大点?mysql8创建字段已支持default (expression),目前审核如下SQL还是会报错 ```sql create table t_fun1( id int not null auto_increment primary key, val varchar(20) not null default '', val2 varchar(20) default (val) ) ```
@LinWanCen 不用改代码,直接增加联合索引`idx_alarmstatus_handlecode` (`alarm_status`,`handle_code`),再看看扫描行多少
对我们是有效,慢SQL瞬间没了。 之所以你们不管用,看了你们数据分布,handle_code200超一半(执行状态失败),是不是得考虑任务有异常。 ``` 这是我们的数据分布 +-------------+---------+ | handle_code | cnt | +-------------+---------+ | 0 | 294438 | | 200 | 2416270 | | 500 | 410 | +-------------+---------+ +--------------+---------+ | alarm_status...