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

Home -> Community -> Mailing Lists -> Oracle-L -> Create Table..As Select: Number formats

Create Table..As Select: Number formats

From: <Simon.Anderson_at_scisys.co.uk>
Date: Wed, 01 Oct 2003 05:29:35 -0800
Message-ID: <F001.005D1AEC.20031001052935@fatcity.com>


I'm trying to create a table using 'Create Table...As Select...'

The contents will then be exchanged into a partitioned table, so they need to have the same names and datatypes.

Some of the columns in the created table are populated with zeroes & will be updated after the partition exchange, one of the columns is populated with a decode that returns a single digit number.

The problem is that I need particular number formats in these columns - the one-digit column should be a number(1,0) and the others should be number(12,4). I can't specify column types in create table...as select, so how else can I force the columns to a particular format?

Any ideas much appreciated.

Cheers
Simon Anderson
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author:
  INET: Simon.Anderson_at_scisys.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Wed Oct 01 2003 - 08:29:35 CDT

Original text of this message

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