Oracle 11G Virtual Columns

guocun09發表於2017-10-26

Virtual Columns

Virtual columns are defined by evaluating an expression the results of which become the metadata of the columns for tables. Virtual columns can be defined at table creation or modification time.

Virtual columns enable application developers to define computations and transformations as the column (metadata) definition of tables without space consumption. This makes application development easier and less error-prone, as well as enhances query optimization by providing additional statistics to the optimizer for these virtual columns.

 

CREATE TABLE GC.VIRTUAL_COL

(NO NUMBER,

NAME VARCHAR2(10),

NO_NAME AS (NO||NAME)

)

 

 

 

 

 

 

 

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25583515/viewspace-2146426/,如需轉載,請註明出處,否則將追究法律責任。

相關文章