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
References
No reference rows published for this article.
Cite this article
MLA
"Virtual column." encyclopegia.org, 2026, https://encyclopegia.org/wiki/virtual-column. Accessed 24 November 2026.
Chicago
"Virtual column." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/virtual-column.
APA
encyclopegia.org. (2026). Virtual column. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/virtual-column
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON