How to optimize this query?
My table has 70 columns.. too many I know.. anyway I need to optimize this slow query:
EXPLAIN SELECT
COUNT(*)
FROM
MY_ORDER
WHERE
MY_DATE>=DATE_SUB(CURDATE(), interval 15 day) AND MY_STATUS != '5' AND MY_STATUS != '10' AND
MY_PHONE='14112319'
ID SELECT_TYPE TABLE TYPE POSSIBLE_KEYS KEY KEY_LEN REF ROWS EXTRA
1 SIMPLE MY_ORDER range MY_DATE,MY_STATUS MY_STATUS 4 \N 737002 Using where
Do you have any idea?
Thank you!
Subject
Views
Written By
Posted
How to optimize this query?
3360
February 18, 2008 05:46AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.