OR、AND 句を使用してクエリを改善するにはどうすればよいですか?
explain
select fileds
from table_name
where (fldlp>='2012-09-15 13:00:34' and fldlp<='2012-09-16 06:00:02')
or (flexp>='2012-09-15 13:00:34' and flexp<='2012-09-16 06:00:02');
+----+-------------+------------+------+---------------+------+---------+------+---------+-------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+------------+------+---------------+------+---------+------+---------+-------------+
| 1 | SIMPLE | table_name | ALL | NULL | NULL | NULL | NULL | 2928790 | Using where |
+----+-------------+------------+------+---------------+------+---------+------+---------+-------------+