SQLServer2005 高校教學內容 (SQL 基礎 - 視圖)

建立視圖code

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_studentit

視圖之間的相互索引io

create view IS_s1(sname,grade)
as 
select sno,grade
from IS_student
where grade > 90
相關文章
相關標籤/搜索