Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Can someone please straighten me out on the COUNT function?
I've read such conflicting posts such as --
(a) "Count (*) is also quicker because it does not need to query
the underlying data to determine whether to include the value
or not"
(b) "For better performance, Count(*) should not be used because the
Oracle must first resolve all column names in the table which is a
step that may not be required if ur just counting rows. Generally
select count(indexed column) and select count(rowid) are faster."
So no wonder I've no solid understanding of it! What I'd like to know is --
-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Jan 12 1999 - 05:19:40 CST