Hi,
I am trying to create a table in Oracle using a select query.
create table xxx as select AVG(column_name) from table_name;
create table xxx as select 0.12 from dual;
xxx is creating me a table with avg column values as integers in oracle 10g.
In 9i it creating with decimal values.
In Oracle 9i I am able to store all Decimal values by default even though
the table created is showing a type as NUMBER.
But when I am trying to do the same in Oracle 10g it is truncating all decimal
values to integers (ie., 0.95671 to 0) and storing it into the table.
If any one has a resolution to this in oracle 10g please let me know how can
I default a column to store a decimal value.
I am trying to create a table in Oracle using a select query.
create table xxx as select AVG(column_name) from table_name;
create table xxx as select 0.12 from dual;
xxx is creating me a table with avg column values as integers in oracle 10g.
In 9i it creating with decimal values.
In Oracle 9i I am able to store all Decimal values by default even though
the table created is showing a type as NUMBER.
But when I am trying to do the same in Oracle 10g it is truncating all decimal
values to integers (ie., 0.95671 to 0) and storing it into the table.
If any one has a resolution to this in oracle 10g please let me know how can
I default a column to store a decimal value.