SQL和Clause性能优化

时间:2017-10-08 05:36:45

标签: sql database-performance

您好我需要帮助优化打击查询

SELECT * FROM {SOME TABLE} T <WITH SOME JOIN>
WHERE T.C0 = 0
AND   T.C1 = 0
AND   T.C2 = 0
AND   T.C3 = 0
AND   T.C4 = 0
AND   T.C5 = 0
AND   T.C6 = 0

由于我检查了具有AND条件的6个相同数据类型列的值,因此需要相当长的时间。

0 个答案:

没有答案