简单的优化案例1

select count(*) fromworld.city where id>5;

 等价于

select (select count(*) from world.city) -count(*) from world.city where id <=5

posted on 2014-08-20 21:41  zitong  阅读(129)  评论(0编辑  收藏  举报