Couple of minor tweaks to the information you provided here, When you say count(1) you are actually using a row ordinal in this case not a numeric value as you state. for example select count(1) from USER_TABLES; selects the nonnull values in the first row and returns that count. select count(2) from USER_TABLES; selects the nonnull values in the second row and returns that count. otherwise this second query would return a number twice as large as the first query. Your performance tuning tip does have one more issue, it is true that in MSSQL the count(1) vs Count(*) will give a better performance in the 1st scenario, However in Oracle even if you were to use count(0) (which would use the virtual rownum column) the execution plan would be the exact same for all of these PLSQL statements.
-- You received this message because you are subscribed to the Google Groups "Oracle PL/SQL" group. To post to this group, send email to Oracle-PLSQL@googlegroups.com To unsubscribe from this group, send email to oracle-plsql-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Oracle-PLSQL?hl=en To unsubscribe from this group, send email to oracle-plsql+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.