oracle 虚似列的介绍

来源:互联网 发布:淘宝收货几天自动付款 编辑:程序博客网 时间:2024/06/04 12:15

 1 举例 

create table tv(a number,b number,d number,c as (a*b+d/10))
SQL> /

Table created.

SQL> insert into tv (a,b,d) values (1,2,3);

1 row created.

SQL> select * from tv;

         A          B          D          C
---------- ---------- ---------- ----------
         1          2          3        2.3

SQL>

原创粉丝点击