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: SQL help (create table)

Re: SQL help (create table)

From: Pieter <phuiberts-123_at_ivwnet.com>
Date: Mon, 03 Jun 2002 08:00:51 -0400
Message-ID: <3CFB5A73.1000300@ivwnet.com>


CREATE TABLE new_table_1 AS
SELECT col_1, col_2 FROM wxisting_table;

The new columns inherit the data type

Jean-Baptiste Jacquemard wrote:

> Hello
> I'd like to know if it is possible to create a table where column names are the result of a select.
> Something like : create table new_table (select column from table)
> And if yes, how do I specify data types ? Is there a default data type ?
> Thanks a lot
>
>

-- 
Remove '-123' (no quotes) from the e-mail address when you want to reply 
to me

-Happy Trails ;-)
Received on Mon Jun 03 2002 - 07:00:51 CDT

Original text of this message

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