Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: select counts versus insert/select counts

Re: select counts versus insert/select counts

From: <jonathan_at_jlcomp.demon.co.uk>
Date: Tue, 23 Oct 2007 18:07:00 +0100
Message-Id: <E1IkNDY-000Bfm-Es@pr-webmail-2.demon.net>


It might be worth looking at the execution plans. Because of an oddity in costing, the plan for   select ...
may differ from the plan for
  insert into ... select ...

The problem, of course, is knowing which plan is giving the correct answer. If the plans are different, you could try hinting the "alternative" plan to see what happens.

Regards
Jonathan Lewis
http://jonathanlewis.wordpress.com
http://www.jlcomp.demon.co.uk

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Oct 23 2007 - 12:07:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US