码迷,mamicode.com
首页 > 其他好文 > 详细

视图创建

时间:2014-12-04 17:15:32      阅读:153      评论:0      收藏:0      [点我收藏+]

标签:使用   sp   bs   ad   as   tt   nbsp   table   class   

select  *from 

(select *from  score ,grade where score.degree bettwen low and upp as  biaomingtable )

where rank=‘A‘

 

select  查询出来的结果集可以通过as 起别名 当做虚拟表来使用

 

------创建视图

 

create  view shitu

as

select  student .sno ,class,student.sname,score.degree,score.cno from  student where student.sno=score.sno

go

 

alter view shitu --修改视图

drop view  视图---删除视图

视图创建

标签:使用   sp   bs   ad   as   tt   nbsp   table   class   

原文地址:http://www.cnblogs.com/wei270647220/p/4143047.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!