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

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

RE: Create Table..As Select: Number formats

From: Stephane Faroult <sfaroult_at_oriolecorp.com>
Date: Wed, 01 Oct 2003 06:04:28 -0800
Message-ID: <F001.005D1AF3.20031001060428@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

Simon,

   I don't think that there is any problem here. Specifying the number of digits is largely cosmetic - consider it as a default mask. It doesn't affect how data is stored inside the tables AFAIK.

Regards,

Stephane Faroult
Oriole

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriolecorp.com

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 - 09:04:28 CDT

Original text of this message

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