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 -> Explicit char column definitions in create table as select?

Explicit char column definitions in create table as select?

From: Neville Grills <ngrills_at_labyrinth.net.au>
Date: Sat, 17 Jul 1999 00:32:18 +1000
Message-ID: <378F4272.64E6006@labyrinth.net.au>

Is it possible to force Oracle to create a specific type and length of character
when creating a table using select.

Like -

create table test1 as select substr(col_code,1,3) col13_code from basetab;

This will create a varchar2 (3) column even if col_code is char.

Can the type be forced to char without using alter table nor pre-creating the table?

Any help appreciated.

Thanks
Neville Received on Fri Jul 16 1999 - 09:32:18 CDT

Original text of this message

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