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

Home -> Community -> Usenet -> c.d.o.server -> datatype in view

datatype in view

From: Ty O'Kelly <tokelly_at_openplus.com>
Date: Mon, 25 Oct 1999 16:52:19 -0500
Message-ID: <3814D113.C1F9C451@openplus.com>


hi,

i am creating a view that is built from from a table and another view. it is constructed like this:

create view view1 as
select a.column1,

          decode(a.column2,'T',a.column3,b.column3) column3 from table1 a,

       view1 b
where a.column1 = b.column1

when i describe view2 the datatype for column3 is displayed as varchar2(10).
when i describe table1 the datatype for column3 is displayed as char(10).
when i describe view1 the datatype for column3 is displayed as char(10).

i need the datatype for view2.column3 to be a char(10). is there a way to force the use of this datatype in the creation of the view.

thanks!

Ty O'Kelly
tokelly_at_openplus.com Received on Mon Oct 25 1999 - 16:52:19 CDT

Original text of this message

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