为什么这两个语句的cpu cost相差10倍呢??
select col1 from a where col2 = 1 order by col1;
select * from (select col1 from a where col2=1) order by col1;--这个执行计划明显的小些。。
...全文
1345打赏收藏
order by的疑问
为什么这两个语句的cpu cost相差10倍呢?? select col1 from a where col2 = 1 order by col1; select * from (select col1 from a where col2=1) order by col1;--这个执行计划明显的小些。。