SQLServer2005 高校教学内容 (SQL 基础 - 视图)

创建视图

create view IS_Student(sno,sname,grade)
as
    select student.sno,sname,grade
    from student,sc
    where student.sno = sc.sno
        and sdept = 'IS' 
        and cno = '2' 
with check option

删除视图

drop view IS_student

视图之间的相互索引

create view IS_s1(sname,grade)
as 
select sno,grade
from IS_student
where grade > 90
    原文作者:SQL
    原文地址: https://segmentfault.com/a/1190000008998199
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞