mysql之视图
视图
虚拟表,通过表动态生成的数据
-- 视图
create or replace view myview1 as
select last_name,department_name,job_title
from employees e
left join departments d on e.department_id = d.department_id
left join jobs j on e.job_id = j.job_id;
select * from myview1 where last_name like '%a%';
本文来自博客园,作者:King-DA,转载请注明原文链接:https://www.cnblogs.com/qingmuchuanqi48/articles/15970238.html

浙公网安备 33010602011771号