DB2语句优化……
为什么我将下面的语句
(tax_date < current timestamp or hydraulic_date < current timestamp or inside_date < current timestamp);
修改为
(tax_date < current timestamp and year(tax_date) = year(current timestamp) or hydraulic_date < current timestamp and year(hydraulic_date ) = year(current timestamp) or inside_date < current timestamp and year(inside_date ) = year(current timestamp));
后,耗时增加了n倍??请高手指点下!!