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: SELECT * FROM (MyCursor Results) ..?

Re: SELECT * FROM (MyCursor Results) ..?

From: David Fowler <dbf57_at_earthlink.net>
Date: Sun, 18 Feb 2001 16:08:35 GMT
Message-ID: <7sSj6.2681$6N6.280445@newsread2.prod.itd.earthlink.net>

Brian,
  Try to insert the result set of first cursor output in temp table (If your on Oracle 8i). See manual on transaction/session type table.

 Is there a join column between them ? or are they completely unrelated things (Cartian product then if joined) . The second query will have to work off the table/views.
hth,
Dave Fowler

"Brian Y." <NOSP_at_M> wrote in message
news:Fq%i6.42$MX.226054_at_news2.news.adelphia.net...
> Is it possible to use the results of a cursor inside a query - similar to
> the way I would do a nested query? So I have a cursor in my DECLARE
 area...
>
> CURSOR c1 IS SELECT f1, f2 FROM table1...
>
> and further down I'm working in another query. I know I could do something
> like
>
> SELECT f1 FROM (SELECT f1, f2 FROM table1... ),
>
> that's standard. But is there any way to pull the cursor results into the
> query, as in...
>
> SELECT f1 FROM (c1...)?
>
> Or maybe there's another syntax, structure or approach that I should be
> using? The problem is I have a global query (in a cursor) that I really
> can't change, but I need to link to another table from it. Any thoughts?
> Thanks.
>
> B~
>
>
>
Received on Sun Feb 18 2001 - 10:08:35 CST

Original text of this message

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