>--- 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 to be had with using select count(*) from within a PL/SQL programming unit then when selecting from SQL*Plus. See MetaLink Doc ID: 1013985.102 I have an e-mail from an Oracle exponent which contains stats showing that the various count() theories are in fact just legend and that your session performs the same amount of work no matter which method you choose. Where this leaves us all is........... BTW: If you're into Oracle trivia see can you find out how and where the DUAL table got it's name. PS: What's your name. Anonymity is not a pre-requisite around here AFAIK. ------------------------- Sean O' Neill Organon (Ireland) Ltd. [subscribed: digest mode] -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: O'Neill, Sean INET: [EMAIL PROTECTED] Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
