数据库-创建视图,更新视图,查询视图

1.创建视图

创建一个名为vwscs的视图,是将学生表中院系是计算机科学学院的学生的学号,姓名,性别,专业四个字段显示出来
create view vwscs
as
select sno,sname,ssex,tel,emall from student 
where sdept='计算机科学学院'

2.更新视图

通过vwscs视图进行数据更新,将杨华的电话修改为13966667777
update vwscs
set tel='13966667777'
where sname='杨华'

3.查询视图

select *from vwscore where score grade<85
原文地址:https://www.cnblogs.com/dongxuelove/p/12983514.html