In one environment on 11G, I have created a table with one virtual column as follows
create table TEST_VIRTUAL_COL(
col1 number(5),
col2 varchar2(10),
col3 number generated always as((-1)) virtual visible
);
Then insert a row into this
insert into TEST_VIRTUAL_COL (col1,col2) values (1,'Test');
When I select data from this table
select * from TEST_VIRTUAL_COL;
I get the following output
COL1 | COL2 | COL3
---------------------------------------------------------
1 | Test | -1.00020202020065020202005723022430686716
COL3
doesn't show -1
Any idea around this, how to get -1
as output of COL3
?
It works perfectly in another environment on Oracle 11g.