I am using the decode function in a view. I want to know if it is possible to set a field length for the new field which I am putting values.
Sample code:
create view x as
select x,x,x,
to_char(decode(trans_ukey1, 'HOME', rate1, trans_ukey1))
department
from x
By default it looks like department is getting a field length of 40.
I want to make department have a field length of 255 char.
Is there a way to define this in the view?
Eddie
Sample code:
create view x as
select x,x,x,
to_char(decode(trans_ukey1, 'HOME', rate1, trans_ukey1))
department
from x
By default it looks like department is getting a field length of 40.
I want to make department have a field length of 255 char.
Is there a way to define this in the view?
Eddie