报错语句:
insert into view_emp_dep
values ('萧炎',5000,'售后部');
执行失败(语句1)
第2 行附近出现错误[-2649]:
试图插入只读视图[view_emp_dep]
我创建的视图语句:
create view view_emp_dep as
select t1.employee_name,t1.salary,t2.department_name
from employee t1,department t2
where t2.department_id = '102' and t1.department_id=t2.department_id;