- mysql> explain SELECT COUNT(1) FROM t_irs_busi_notice WHERE status = '1' AND send_type = 'wxwork' AND user_code = '8001449' AND notice_status = 'finish' AND send_time >= date_sub(NOW(), INTERVAL 1 * 30 DAY);
- +----+-------------+-------------------+------------+------+---------------+------+---------+------+-------+----------+-------------+
- | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra |
- +----+-------------+-------------------+------------+------+---------------+------+---------+------+-------+----------+-------------+
- | 1 | SIMPLE | t_irs_busi_notice | NULL | ALL | NULL | NULL | NULL | NULL | 29144 | 0.00 | Using where |
- +----+-------------+-------------------+------------+------+---------------+------+---------+------+-------+----------+-------------+
- 1 row in set, 1 warning (0.00 sec)
复制代码
|