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: Materialize hint

Re: Materialize hint

From: jaromir nemec <jaromir_at_db-nemec.com>
Date: Wed, 29 Dec 2004 23:36:28 +0100
Message-ID: <00a601c4edf6$d7547270$3c02a8c0@JARAWIN>


Hi,

> In reverse order, the "with" clause names
> and defines a subquery before its use in
> a query - a bit like a macro in C.

I'd see very valuable a constellation with "*distributed* subquery factoring". I found no restriction on this in documentation, but have no luck using it (on 9.2.0.5)

SQL> with myrows as (select rownum i from dba_objects_at_win where rownum < 1000)

  2 select a.*,b.* from myrows a,myrows b;

with myrows as (select rownum i from dba_objects_at_win where rownum < 1000)

                                                    *

ERROR at line 1:

ORA-00604: error occurred at recursive SQL level 1

ORA-00933: SQL command not properly ended

Is it a bug or a restriction?

Regards

Jaromir D.B. Nemec

http://www.db-nemec.com

--
http://www.freelists.org/webpage/oracle-l
Received on Wed Dec 29 2004 - 16:31:56 CST

Original text of this message

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