数据库|视图
作者:互联网
1.create view CS_student
AS select sno,sname,sage from Student where Sdept ='CS'
create view CS_student
AS select sno,sname,sage from Student where Sdept ='CS'** on check**
加了on check 后,对视图执行插入操作时,会检查插入的sdept是否为CS,若不是,则禁止插入
而没有加on check 时,对视图的插入中,sdept可以为null
标签:Sdept,数据库,sage,视图,插入,CS,check 来源: https://www.cnblogs.com/Rikaaa/p/13956962.html