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 -> Create table question

Create table question

From: <peteg_at_garlic.com>
Date: 20 Jan 2005 10:59:21 -0800
Message-ID: <1106247561.659766.239420@c13g2000cwb.googlegroups.com>


I need to create and populate a table using a select statement where one of the columns is initially to be populated with the value 'OK'. However, this creates a char type, but I need it to be a varchar2 because, subsequently, I will be modifying the value within that column.

For example, when I try to create a table like this:

create table test as select sysdate ADate, 'OK' AFlag from dual

the column AFlag is a char(2).
How do I force it to be a varchar2 from the gitgo?

TIA Pete Received on Thu Jan 20 2005 - 12:59:21 CST

Original text of this message

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