How to Create a Generated Column in Oracle

Oracle Database supports the creation of generated columns. A generated column is a column whose value is derived from an expression that computes values from other columns.

In Oracle Database, generated columns are usually referred to as virtual columns. Generated columns can also be referred to as computed columns in other RDBMSs (such as SQL Server). Either way, they do pretty much the same thing – they contain an expression that computes a value based on values in other columns in the same table.

Continue reading