1,用左外连接连接3个表创建视图
2,在上面视图的基础上创建个行列子集视图用的代码:
create view v_stuinfo_1 as select * from v_stuinfo where sdept='cs' with check option;
会报错:[Err] 1368 - CHECK OPTION on non-updatable view 'school.v_stuinfo_1'
但步骤一中连接表的方式换为:....select 列1,列2... from 表1,表2,表3 where 表1.列a=表2.列a,and 表2.列b=表3.列b;
创建好视图再执行步骤2就可以创建成功了,
不是因为步骤1中使用临时表的问题
这是为什么?因为连接方式不同吗?希望大佬赐教!感谢!