今天在ORACLE 10g上做了个测试:
select count(*) from abc
select count(某字段) from abc
如果选择的字段为索引字段时,速度几乎一样。
另外,select count(索引字段) from abc
比 select count(非索引字段) from abc
速度明显快,快3倍以上。
[@more@]来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/13926548/viewspace-1007971/ ,如需转载,请注明出处,否则将追究法律责任。