in reply to Re: Re: Handling conditions DBI in Oracle 8.1
in thread Handling conditions DBI in Oracle 8.1

You can't use SELECT COUNT(*) in Oracle because it will always give you the wrong count.

If I get the wrong count, I'll submit a bug report to Oracle (is there any documentation on this? I don't see anything to that effect under the docs for 'COUNT'). ANALYZE generates statistics for query plans, and shouldn't affect the results of a statement like 'select count(*) ...'.

  • Comment on Re: Re: Re: Handling conditions DBI in Oracle 8.1