Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> count(*) vs count(columnX): Which one is better?
Regarding an SQL statement like this:
SELECT count(*) FROM tableX where columnX='ABC'
and
SELECT count(columnX) FROM tableX where columnX='ABC'
Which one is better for performance? What if columnX has an index? Would there be some differences in performance and efficiency? Thank you in advance. Received on Thu Oct 22 1998 - 19:51:10 CDT