--- aaa aaa [EMAIL PROTECTED] wrote:
Can anyone tell me what is difference between :
select count(*) ... from ..
select count(0) ...
select coun (1) ...
select count(2) ...
For other insights take a look at
http://www.oracledba.co.uk/tips/count_speed.htm
There is also some fun
PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: Re: [Q] what difference between count(0), count(1) and count(*)
Date: Wed, 24 Oct 2001 11:41:11 -0800
i think count(*) gives count of all columns .. where
as count(col1) gives count for col1 ignoring nulls in
col1
Deepak
Can anyone tell me what is difference between :
select count(*) ... from ..
select count(0) ...
select coun (1) ...
select count(2) ...
Thanks.
_
Get your FREE download of MSN Explorer at
i think count(*) gives count of all columns .. where
as count(col1) gives count for col1 ignoring nulls in
col1
Deepak
--- aaa aaa [EMAIL PROTECTED] wrote:
Can anyone tell me what is difference between :
select count(*) ... from ..
select count(0) ...
select coun (1) ...
Thank you for answer. How about count(0)?
From: Deepak Thapliyal [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Subject: Re: [Q] what difference between count(0), count(1) and count(*)
Date: Wed, 24 Oct 2001 11:41:11 -0800
i think