-- create(用replace将覆盖已存在的视图) view 视图名 as 查询语句 CREATE VIEW book_author AS (SELECT a.name bookName, b.name authorName FROM book a, author b WHERE a.author_id = b.id);
drop view 视图名
-- 与正常的查询语句相同 select * from 视图名