I am trying to modify 2 fields in a table, and both of them are parts of another (virtual / calculated) field.
What I want to do it change LAND_VALUE and IMPROCE_VALUE from NUMBER [highlight #FCE94F]10[/highlight],2 to NUMBER [highlight #8AE234]11[/highlight],2
[pre] STATION VARCHAR2(20 BYTE),[blue]
LAND_VALUE NUMBER([highlight #FCE94F]10[/highlight],2) DEFAULT 0 NOT NULL,
IMPROVE_VALUE NUMBER([highlight #FCE94F]10[/highlight],2) DEFAULT 0 NOT NULL,
PURCHASE_AMT NUMBER GENERATED ALWAYS AS ("LAND_VALUE"+"IMPROVE_VALUE"),[/blue]
AREA NUMBER(12,2) DEFAULT 0 NOT NULL,[/pre]
But I am getting an error:
ORA-54031: column to be dropped or modified is used in a virtual column expression
How can I change those 2 fields from 10,2 to 11,2?
---- Andy
There is a great need for a sarcasm font.
What I want to do it change LAND_VALUE and IMPROCE_VALUE from NUMBER [highlight #FCE94F]10[/highlight],2 to NUMBER [highlight #8AE234]11[/highlight],2
[pre] STATION VARCHAR2(20 BYTE),[blue]
LAND_VALUE NUMBER([highlight #FCE94F]10[/highlight],2) DEFAULT 0 NOT NULL,
IMPROVE_VALUE NUMBER([highlight #FCE94F]10[/highlight],2) DEFAULT 0 NOT NULL,
PURCHASE_AMT NUMBER GENERATED ALWAYS AS ("LAND_VALUE"+"IMPROVE_VALUE"),[/blue]
AREA NUMBER(12,2) DEFAULT 0 NOT NULL,[/pre]
But I am getting an error:
ORA-54031: column to be dropped or modified is used in a virtual column expression
How can I change those 2 fields from 10,2 to 11,2?
---- Andy
There is a great need for a sarcasm font.