Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Difference between count(1) and count(*)

Re: Difference between count(1) and count(*)

From: <ryan.gaffuri_at_comcast.net>
Date: Thu, 08 Jul 2004 13:38:02 +0000
Message-Id: <070820041338.22463.40ED4E3A00016E76000057BF2200734840079D9A00000E09D2020E979D@comcast.net>


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;
>



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US