mysql> USE cardi_test; Database changed mysql> EXPLAIN SELECT * FROM test_data WHERE flag = 0; +----+-------------+-----------+------------+------+---------------+----------+---------+-------+------+----------+-------+ | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra | +----+-------------+-----------+------------+------+---------------+