create view two(name,birth,sex)
as
select name,birthday,sex
from one
with read only
创建视图:
create view 表名
as
select 要基表的列名称,也可以直接用*代替所有列
from 基表
with read only
with read only 加上后视图就变成了只读模式,只能进行查询,不能进行修改操作。
drop view two;
删除视图:drop view 表名;