要求;
create or replace view v_user
as select * from user
create
or replace view v_user as select
u.*, c.cardno,
c.opendate,
c.money,
c.islock,
c.passwrod
from
user u,
card c
where
u.userid = c.userid
1.select子句中包含distinct
2.select子句中包含组函数
3.select语句中包含group by子句
4.select语句中包含union 、union all等集合运算符
5.where子句中包含相关子查询
6.如果视图中有计算列,则不能更新
7.如果基表中有某个具有非空约束的列未出现在视图定义中,则不能做insert操作