我在sqlite数据库中有一个查询,如下所示:
select from table where
(a = 20 and b = 5 and c > 40) or
(a = 20 and b > 5) or
(a > 20)
order by a, b, c asc;
如果选择的顺序改变为此,是否会有任何性能差异?:
select from table where
(a > 20) or
(a = 20 and b > 5) or
(a = 20 and b = 5 and c > 40)
order by a, b, c asc;
由于