Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Difference between count(1) and count(*)
for some reason there appears to be more B.S. associated with performance tuning than any other Oracle topic. People are far more likely to pull stuff out of their asses on performance tuning than anywhere else...
> I've actually seen an "expert" optimizing the count() statement, by using
> count(null) "since null means nothing and thus is the fastest" :)
>
> But check this:
>
> SQL> select count(*) from dual;
>
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Thu Jul 08 2004 - 08:34:44 CDT
![]() |
![]() |