e01.org

Virtual column

In relational databases a virtual column is a table column whose value(s) is automatically computed using other columns values, or another deterministic expression. Virtual columns are defined of SQL:2003 as Generated Column, and are only implemented by some DBMSs, like MariaDB, SQL Server, Oracle, PostgreSQL, SQLite and Firebird (database server) (COMPUTED BY syntax).

In relational databases a virtual column is a table column whose value(s) is automatically computed using other columns values, or another deterministic expression. Virtual columns are defined of SQL:2003 as Generated Column, and are only implemented by some DBMSs, like MariaDB, SQL Server, Oracle, PostgreSQL, SQLite and Firebird (database server) (COMPUTED BY syntax). [GENERATED ALWAYS] AS ( ) [VIRTUAL | PERSISTENT] [UNIQUE] [UNIQUE KEY] [COMMENT ] type is the column's data type expression is the SQL expression which returns the column's value for each row text is an optional column comment column_name [type] COMPUTED BY (expression) or the industry standard column_name [type] GENERATED ALWAYS AS (expression) ==References== Computed Columns in SQL Server 2008

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Virtual column". 1769468903. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1335033076

JSON record · API collection · citation policy