Virtual Columns in oracle 11g
Virtual Columns: Oracle 11g introduced the concept of ‘ Virtual Column ’ within a table. Virtual Columns are similar to normal table’s columns but with the following differences: They are defined by an expression. The result of evaluation of this expression becomes the value of the column. The values of the virtual column are not stored in the database. Rather, it’s computed at run-time when you query the data. You can’t update (in SET clause of update statement) the values of virtual column. These are read only values, that are computed dynamically and any attempt to modify them will result into oracle error. The syntax for defining a virtual column is: column_name [datatype] [GENERATED ALWAYS] AS [expression] [VIRTUAL] where the parameters within [ ] are optional and can be omitted. If you don’t mention the datatype, Oracle will decide it based on the result of the expression. Excepting the above points, a virtual column, exists just like any other column of a normal table and the fo...