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

Home -> Community -> Usenet -> c.d.o.server -> Re: Will Oracle scan the table with this query?

Re: Will Oracle scan the table with this query?

From: Alexander Penev <alex_at_cska.net>
Date: Mon, 28 Aug 2000 23:03:02 GMT
Message-ID: <39AAEF98.1690E26B@cska.net>

I've just testet ot and the anser was no: SQL> select * from items where 1=0;

Es wurden keine Zeilen ausgewählt (no recs selected)

Abgelaufen: 00:00:00.00 (Time)
SQL> Items has about 2mio recs

>
> SELECT * FROM BIGTABLE WHERE 1 = 0
>
> will Oracle waste the time visiting all the data?
> Thanks,
> Joe
>
> --------------------------------------------------------------------------------
> The Weblogic Application Server from BEA
> JavaWorld Editor's Choice Award: Best Web Application Server
> Java Developer's Journal Editor's Choice Award: Best Web Application Server
> Crossroads A-List Award: Rapid Application Development Tools for Java
> Intelligent Enterprise RealWare: Best Application Using a Component Architecture
> http://www.bea.com/press/awards_weblogic.html
Received on Mon Aug 28 2000 - 18:03:02 CDT

Original text of this message

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