我希望在提高SQL
查询性能方面获得帮助。查询非常简单,但执行起来需要相当长的时间,所以我想了解一些关于如何增强查询的提示:
SELECT
*
FROM
SOME_DB_TABLE
WHERE
SUBSTRING(TIME, 1, 8)
BETWEEN
"20110101" AND "20111231"
AND
CONDITION_COL = "C"
GROUP BY
TIME
ORDER BY
TIME ASC