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

Home -> Community -> Usenet -> c.d.o.server -> Re: How to improve this query?

Re: How to improve this query?

From: Tom Miskiewicz <miskiewicz2_at_yahoo.com>
Date: Mon, 24 Nov 2003 14:55:10 +0100
Message-ID: <bpt2l6$91h$1@news.gatel.net>


Hi!

Thanks for your reply.

> If all you want to test for is not null and your column is indexed then
you
> should use
> select count(*)
> from table
> where col is not null;

I have been told, that there is no difference between count(*) and count(1). Is that right?

Thomas Received on Mon Nov 24 2003 - 07:55:10 CST

Original text of this message

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