数据库视图的建立和删除
发布网友
发布时间:2022-04-20 03:58
我来回答
共2个回答
热心网友
时间:2022-04-09 22:47
1,create view v_customer
as
select First_Name, Last_Name, Country
from customer
2.drop view v_customer
3.所谓的视图并不是真正存在的表,而是一条sql语句而已,想要增加字段只要重新建立一下视图就可以了
热心网友
时间:2022-04-10 00:05
1
create view v_customer
as
select first_name,last_name,country from customer
2
drop view v_customer
3
alter view v_customer
as
select last_name,country from customer
上述写法为sqlserver的写法,其他数据库略有不同