引言
查询语句为:
show full tables where table_type可查询当前数据库表
一,创建一个视图
# 创建视图
create view v_stu as
# 视图内容(连接的一个表)
select name from t_stu
union all
select tname from t_teach;二,查询视图
select * from v_stu;查询结果:
三,查询数据库表
show full tables where table_type;查询结果:

show full tables where table_type='VIEW';查询结果:

show full tables where table_type='BASE TABLE';查询结果:

四,注意
 


















