MySQL视图
创建试图
create view sex_st (视图名称)
as
select xb,count(sex) as renshu from dangan group by(sex);
查询视图
select * from sex_st;
修改视图
select xb,count(sex) as renshu from dangan group by(sex);
删除视图
drop view sex_st;
(视图的创建只对插入数据有影响)
创建试图
create view sex_st (视图名称)
as
select xb,count(sex) as renshu from dangan group by(sex);
查询视图
select * from sex_st;
修改视图
select xb,count(sex) as renshu from dangan group by(sex);
删除视图
drop view sex_st;
(视图的创建只对插入数据有影响)