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: select into another table

Re: select into another table

From: Stephan Born <stephan.born_at_beusen.de>
Date: Fri, 05 Nov 1999 10:39:27 +0100
Message-ID: <3822A5CF.B9FDD4E2@beusen.de>

William schrieb:

> I found some syntax last week on technet.oracle.com which would take a
> select statement resultset and output into a new table.
> however, i can't seem to find the syntax now. can someone help me out?
>
> i need to select all unique from tableone and output into a new tabletwo
>
> thanks!

If the table does exist:

insert into tab_a (column_a, column_b, ...) select dat_for_col_a, dat_for_col_b, ... from ....
where ....

If you want to create the table with the select-statement:

create table tab_a as
<select-statement>

Regards, Stephan
--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-17          | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------
       PGP-Key verfügbar       |      PGP-Key available
---------------------------------------------------------------


Received on Fri Nov 05 1999 - 03:39:27 CST

Original text of this message

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