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 -> Re: Multiple selects

Re: Multiple selects

From: Jill <jc_va_at_hotmail.com>
Date: Wed, 1 Sep 1999 21:19:16 -0700
Message-ID: <7qkjb7$dg8$1@bgtnsc02.worldnet.att.net>


a different take on this is maybe you could use a union e.g.

Select * from dba where fielda like "jiberish" union
select * from dbb where fieldd not like "jiberish"

This is assuming the tables have the same columns. Obviously separate statements within a script would work, too.

jimbob4334_at_my-deja.com wrote in message <7qj909$goj$1_at_nnrp1.deja.com>...
> Hi,
>
>
>Is there a way to have multiple selects using SQL Plus 8 on an NT?
>
>I want to do something like.
>
>spool filename
>Select * from dba where fielda like "jiberish"
>select * from dbb where fieldd not like "jiberish"
>
>spool off
>
>
>--
>Check out http://www.ina.net/eprofits/jeferree
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
Received on Wed Sep 01 1999 - 23:19:16 CDT

Original text of this message

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