Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Optimisation of a sql query
Abhijat wrote:
>
This is an Oracle group. It would be silly to ask non-Oracle questions here. If you are getting the data from an Oracle database, please tell us the version.
In Oracle, only very old software versions (or very obscure situations) care what order the SQL is in. Oracle will use statistics on the tables to find the best access method for the data. That is the plan everyone is talking about - before it even runs, you can get a pretty good idea what the plan will be, although when the query actually runs Oracle may indeed use a different plan. Again, we can help you figure out what is actually going on if you are getting the data from an Oracle database. If you expect different databases to execute the same SQL the same way, you are in for a rude awakening.
And Mladen is wrong about one thing, portable SQL will not suck equally on every database. It will likely suck extremely badly on some databases, but only suck very badly on others.
jg
-- @home.com is bogus. http://www.ravenblack.net/random/surreal/shakespeare.htmlReceived on Wed Jul 19 2006 - 16:17:44 CDT
![]() |
![]() |