我们都知道,如果谓语条件中对column做了计算,或者是转换等操作,是不能使用到该列上的所以的。比如:
select ... from tab where col1 + col2 > 100
即使,col1,或者col2上有索引,该查询还是不用上的。
我们默认情况下创建的索引是升序的(asc),但是我们也可以创建降序的索引(desc),但孰不知,其实是把降序索引作为函数索引处理的。
Oracle Database treats descending indexes as function-based indexes. The columns marked DESC are sorted in descending order.