SQL语句--创建视图

SQL语句–创建视图

写这个创建视图的语句
首先我们要写出 相关内容的查询语句

eg:
select* 
from Student t1 inner join Teacher t2 on t1.no=t2.no
where t2.Tname='Mimo_YY'

然后写外框架,即完成

create VIEW view_NCIC_OA_Balance
AS
select* 
from Student t1 inner join Teacher t2 on t1.no=t2.no
where t2.Tname='Mimo_YY'

多说一句:
当想修改视图时,把create 改成 alter

你可能感兴趣的:(sql)