Oracle 11g new feature – Virtual Column
在之前的一篇 - Oracle 11g New Feature - Partition 文章中曾经提到虚拟列的概念,但是当时自己也有些疑问,今天在Oracle 11.1.0.6 上简单测试了一下。 CREATE TABLE tb_v (col_1 number(6) not null, col_2 number not null, col_v as (col_1+col_2)); -- 由于虚拟列的存在,所以即使指定了全部的实际列的值也会报值不足的错误 SQL> insert into…