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

Home -> Community -> Usenet -> c.d.o.misc -> SELECT...INTO and UNION query

SELECT...INTO and UNION query

From: Mike Heisz <mheisz_at_rim.net>
Date: Wed, 28 Jul 1999 15:30:17 -0400
Message-ID: <newscache$68ilff$pnd$1@njord.rim.net>


I am having trouble with the fillowing type of statement

select E, B, C
into var1, var2, var3
from

(select A as E, B,C

    from .....
    where....
    union all
    select D as E, B,C
    from .....
    where....);

For some reason var1 is being set to null but var2 and var3 are getting the correct values.

It works if I use the following query but I would prefer not to do this:

select *
into var1, var2, var3
from

(select A, B,C

    from .....
    where....
    union all
    select D, B,C
    from .....
    where....);

Any help would be appreciated,

Thanks
Mike Received on Wed Jul 28 1999 - 14:30:17 CDT

Original text of this message

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